Main Page
Namespaces
Classes
Files
File List
File Members
include
Graphics
GL4
GteGL4RasterizerState.h
Go to the documentation of this file.
1
// David Eberly, Geometric Tools, Redmond WA 98052
2
// Copyright (c) 1998-2017
3
// Distributed under the Boost Software License, Version 1.0.
4
// http://www.boost.org/LICENSE_1_0.txt
5
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6
// File Version: 3.0.0 (2016/06/19)
7
8
#pragma once
9
10
#include <
Graphics/GteRasterizerState.h
>
11
#include <
Graphics/GL4/GteGL4DrawingState.h
>
12
13
namespace
gte
14
{
15
16
class
GTE_IMPEXP
GL4RasterizerState
:
public
GL4DrawingState
17
{
18
public
:
19
// Construction.
20
GL4RasterizerState
(
RasterizerState
const
* rasterizerState);
21
static
std::shared_ptr<GEObject> Create(
void
* unused,
GraphicsObject
const
*
object
);
22
23
// Member access.
24
inline
RasterizerState
* GetRasterizerState();
25
26
// Enable the rasterizer state.
27
void
Enable();
28
29
private
:
30
GLenum
mFillMode
;
31
GLenum
mCullFace
;
32
GLenum
mFrontFace
;
33
float
mDepthScale
;
34
float
mDepthBias
;
35
GLboolean
mEnableScissor
;
36
37
// TODO: D3D11_RASTERIZER_DESC has the following. We need to determine
38
// how to handle these in OpenGL.
39
// DepthBiasClamp
40
// DepthClipEnable
41
// MultisampleEnable
42
// AntialiasedLineEnable
43
44
// Conversions from GTEngine values to GL4 values.
45
static
GLenum
const
msFillMode[];
46
static
GLenum
const
msCullFace[];
47
};
48
49
inline
RasterizerState
*
GL4RasterizerState::GetRasterizerState
()
50
{
51
return
static_cast<
RasterizerState
*
>
(mGTObject);
52
}
53
54
}
gte::GL4RasterizerState::mEnableScissor
GLboolean mEnableScissor
Definition:
GteGL4RasterizerState.h:35
gte::GL4DrawingState
Definition:
GteGL4DrawingState.h:16
gte::GL4RasterizerState::mFrontFace
GLenum mFrontFace
Definition:
GteGL4RasterizerState.h:32
GLboolean
unsigned char GLboolean
Definition:
glcorearb.h:90
gte::GL4RasterizerState::mCullFace
GLenum mCullFace
Definition:
GteGL4RasterizerState.h:31
gte::RasterizerState
Definition:
GteRasterizerState.h:15
gte::GL4RasterizerState::mDepthScale
float mDepthScale
Definition:
GteGL4RasterizerState.h:33
gte::GraphicsObject
Definition:
GteGraphicsObject.h:115
GLenum
unsigned int GLenum
Definition:
glcorearb.h:83
gte::GL4RasterizerState::GetRasterizerState
RasterizerState * GetRasterizerState()
Definition:
GteGL4RasterizerState.h:49
gte::GL4RasterizerState::mDepthBias
float mDepthBias
Definition:
GteGL4RasterizerState.h:34
gte
Definition:
GLX/GteWICFileIO.h:16
GteRasterizerState.h
gte::GL4RasterizerState
Definition:
GteGL4RasterizerState.h:16
gte::GL4RasterizerState::mFillMode
GLenum mFillMode
Definition:
GteGL4RasterizerState.h:30
GteGL4DrawingState.h
GTE_IMPEXP
#define GTE_IMPEXP
Definition:
GTEngineDEF.h:63
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:00