27 #if defined(REQUIRE_GL_ES)
34 #if defined(_DEBUG) && defined(_WINDOWS)
35 #define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
45 template class Line_Segment<Vertex3f_Color>;
46 template class Line_Segment<Vertex3f_Texture>;
47 template class Quadrilateral<Vertex3f_Color>;
48 template class Quadrilateral<Vertex3f_Texture>;
49 template class Triangle<Vertex3f_Color>;
50 template class Triangle<Vertex3f_Texture>;
81 m_argb(color.get_argb())
93 m_argb(color.get_argb())
107 #ifndef DISABLE_GL_FIXED
118 GLubyte((m_argb >> 24) & 0xFF));
124 #ifndef DISABLE_GL_SHADER
127 Uint32 c4ub[] = {((
a.get_Color() & 0x000000FF) << 16) | ((
a.get_Color() & 0x00FF0000) >> 16) | ((
a.get_Color() & 0xFF00FF00)),
128 ((
b.get_Color() & 0x000000FF) << 16) | ((
b.get_Color() & 0x00FF0000) >> 16) | ((
b.get_Color() & 0xFF00FF00))};
143 Uint32 c4ub[] = {((
a.get_Color() & 0x000000FF) << 16) | ((
a.get_Color() & 0x00FF0000) >> 16) | ((
a.get_Color() & 0xFF00FF00)),
144 ((
b.get_Color() & 0x000000FF) << 16) | ((
b.get_Color() & 0x00FF0000) >> 16) | ((
b.get_Color() & 0xFF00FF00)),
145 ((
c.get_Color() & 0x000000FF) << 16) | ((
c.get_Color() & 0x00FF0000) >> 16) | ((
c.get_Color() & 0xFF00FF00))};
160 Uint32 c4ub[] = {((
a.get_Color() & 0x000000FF) << 16) | ((
a.get_Color() & 0x00FF0000) >> 16) | ((
a.get_Color() & 0xFF00FF00)),
161 ((
b.get_Color() & 0x000000FF) << 16) | ((
b.get_Color() & 0x00FF0000) >> 16) | ((
b.get_Color() & 0xFF00FF00)),
162 ((
c.get_Color() & 0x000000FF) << 16) | ((
c.get_Color() & 0x00FF0000) >> 16) | ((
c.get_Color() & 0xFF00FF00)),
163 ((
d.get_Color() & 0x000000FF) << 16) | ((
d.get_Color() & 0x00FF0000) >> 16) | ((
d.get_Color() & 0xFF00FF00))};
177 Uint32 c4ub = ((m_argb & 0x000000FF) << 16) | ((m_argb & 0x00FF0000) >> 16) | ((m_argb & 0xFF00FF00));
195 GLubyte((m_argb >> 24) & 0xFF));
213 texture_coordinate(texture_coordinate_)
219 texture_coordinate(texture_coordinate_)
233 #ifndef DISABLE_GL_FIXED
245 #ifndef DISABLE_GL_SHADER
virtual void subrender_to(Video_GL_Fixed &screen) const
The Direct3D9 Rendering System.
LPDIRECT3DDEVICE9 & get_d3d_device()
See DirectX Documentation for details.
virtual void render_to(Video_GL_Fixed &screen) const
Overridden for OpenGL rendering.
An Abstraction of a Vertex in 3-space, colored.
Vertex3f_Texture * interpolate_to(const float &rhs_part, const Vertex3f_Texture &rhs) const
Get a Vertex2f_Texture between two vertices; rhs must be a Vertex2f_Texture.
virtual void subrender_to(Video_GL_Fixed &screen) const
virtual void render_to(Video_GL_Fixed &screen) const
Overridden for OpenGL rendering.
Vertex3f_Texture()
Initialize the Vertex3f_Texture.
GLboolean GLboolean GLboolean GLboolean a
An Abstraction of a Vertex in 3-space, textured.
return Display return Display Bool Bool int d
Point2f texture_coordinate
void * get_address() const
A bit of a hack, necessary to memcpy data into Vertex_Buffers.
A 3D Point represented with floats.
uint32_t Uint32
An unsigned 32-bit integer type.
The OpenGL Rendering System.
virtual Point3f get_position() const
virtual void render_to(Video_GL_Fixed &screen) const
Overridden for OpenGL rendering.
Color interpolate_to(const float &rhs_part, const Color &rhs) const
Get a color that is inbetween this color and another color.
The OpenGL Rendering System.
#define GL_TEXTURE_COORD_ARRAY
#define glDisableClientState
#define glTexCoordPointer
virtual void render_to(Video_GL_Fixed &screen) const
Overridden for OpenGL rendering.
#define glEnableClientState
virtual void render_to(Video_GL_Fixed &screen) const
Overridden for OpenGL rendering.
Vertex3f_Color * interpolate_to(const float &rhs_part, const Vertex3f_Color &rhs) const
Get a Vertex3f_Color between two vertices; rhs must be a Vertex3f_Color.
GLdouble GLdouble GLdouble b
Point2f interpolate_to(const float &rhs_part, const Point2f &rhs) const
Get a point inbetween this point and another point of the same type.
virtual bool is_3d() const
Tell the rendering system if we're using 3D coordinates.
Point3f interpolate_to(const float &rhs_part, const Point3f &rhs) const
Uint32 get_argb() const
Get a Uint32 representation of 0xAARRGGBB.
A 2D Point represented with floats.
Vertex3f_Color()
Initialize the Vertex3f_Color.
virtual bool is_3d() const
Tell the rendering system if we're using 3D coordinates.