-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathRenderStates.h
36 lines (27 loc) · 1.02 KB
/
RenderStates.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//***************************************************************************************
// RenderStates.h by Frank Luna (C) 2011 All Rights Reserved.
//
// Defines render state objects.
//***************************************************************************************
#ifndef RENDERSTATES_H
#define RENDERSTATES_H
#include "d3dUtil.h"
class RenderStates
{
public:
static void InitAll(ID3D11Device* device);
static void DestroyAll();
static ID3D11RasterizerState* WireframeRS;
static ID3D11RasterizerState* NoCullRS;
static ID3D11RasterizerState* CullFrontRS;
static ID3D11RasterizerState* ReverseWindingRS;
static ID3D11BlendState* AlphaToCoverageBS;
static ID3D11BlendState* TransparentBS;
static ID3D11DepthStencilState* DisableDepthDSS;
static ID3D11DepthStencilState* DontWriteDepthDSS;
static ID3D11DepthStencilState* DepthMaskOffDSS;
static ID3D11DepthStencilState* DepthMaskOnDSS;
static ID3D11DepthStencilState* PlanetDSS;
static ID3D11DepthStencilState* CloudDSS;
};
#endif // RENDERSTATES_H