-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRenderState.h
57 lines (49 loc) · 1.11 KB
/
RenderState.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/// @file
/// @author Boris Mikic
/// @version 3.32
///
/// @section LICENSE
///
/// This program is free software; you can redistribute it and/or modify it under
/// the terms of the BSD license: http://www.opensource.org/licenses/bsd-license.php
///
/// @section DESCRIPTION
///
/// Defines a rendersystem state.
#ifndef APRIL_RENDER_STATE_H
#define APRIL_RENDER_STATE_H
#include <gtypes/Matrix4.h>
#include "aprilUtil.h"
#include "Color.h"
#include "Texture.h"
namespace april
{
class RenderState
{
public:
bool textureCoordinatesEnabled;
bool colorEnabled;
unsigned int textureId;
Texture::Filter textureFilter;
Texture::AddressMode textureAddressMode;
Color systemColor;
bool modelviewMatrixChanged;
bool projectionMatrixChanged;
gmat4 modelviewMatrix;
gmat4 projectionMatrix;
BlendMode blendMode;
ColorMode colorMode;
float colorModeFactor;
unsigned int modeMatrix;
int strideVertex;
const void* pointerVertex;
int strideTexCoord;
const void* pointerTexCoord;
int strideColor;
const void* pointerColor;
RenderState();
virtual ~RenderState();
void reset();
};
}
#endif