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<Vertex2f_Color>;
46 template class Line_Segment<Vertex2f_Texture>;
47 template class Quadrilateral<Vertex2f_Color>;
48 template class Quadrilateral<Vertex2f_Texture>;
49 template class Triangle<Vertex2f_Color>;
50 template class Triangle<Vertex2f_Texture>;
57 : position(position.
x, position.
y, position.
z)
80 m_argb(color.get_argb())
94 #ifndef DISABLE_GL_FIXED
105 GLubyte((m_argb >> 24) & 0xFF));
110 #ifndef DISABLE_GL_SHADER
113 Uint32 c4ub[] = {((
a.get_Color() & 0x000000FF) << 16) | ((
a.get_Color() & 0x00FF0000) >> 16) | ((
a.get_Color() & 0xFF00FF00)),
114 ((
b.get_Color() & 0x000000FF) << 16) | ((
b.get_Color() & 0x00FF0000) >> 16) | ((
b.get_Color() & 0xFF00FF00))};
129 Uint32 c4ub[] = {((
a.get_Color() & 0x000000FF) << 16) | ((
a.get_Color() & 0x00FF0000) >> 16) | ((
a.get_Color() & 0xFF00FF00)),
130 ((
b.get_Color() & 0x000000FF) << 16) | ((
b.get_Color() & 0x00FF0000) >> 16) | ((
b.get_Color() & 0xFF00FF00)),
131 ((
c.get_Color() & 0x000000FF) << 16) | ((
c.get_Color() & 0x00FF0000) >> 16) | ((
c.get_Color() & 0xFF00FF00))};
146 Uint32 c4ub[] = {((
a.get_Color() & 0x000000FF) << 16) | ((
a.get_Color() & 0x00FF0000) >> 16) | ((
a.get_Color() & 0xFF00FF00)),
147 ((
b.get_Color() & 0x000000FF) << 16) | ((
b.get_Color() & 0x00FF0000) >> 16) | ((
b.get_Color() & 0xFF00FF00)),
148 ((
c.get_Color() & 0x000000FF) << 16) | ((
c.get_Color() & 0x00FF0000) >> 16) | ((
c.get_Color() & 0xFF00FF00)),
149 ((
d.get_Color() & 0x000000FF) << 16) | ((
d.get_Color() & 0x00FF0000) >> 16) | ((
d.get_Color() & 0xFF00FF00))};
163 Uint32 c4ub = ((m_argb & 0x000000FF) << 16) | ((m_argb & 0x00FF0000) >> 16) | ((m_argb & 0xFF00FF00));
181 GLubyte((m_argb >> 24) & 0xFF));
198 texture_coordinate(texture_coordinate_)
212 #ifndef DISABLE_GL_FIXED
223 #ifndef DISABLE_GL_SHADER
virtual void subrender_to(Video_GL_Fixed &screen) const
Vertex2f_Texture()
Initialize the Vertex2f_Texture.
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 2-space, colored.
virtual void render_to(Video_GL_Fixed &screen) const
Overridden for OpenGL rendering.
GLboolean GLboolean GLboolean GLboolean a
Vertex2f_Texture * interpolate_to(const float &rhs_part, const Vertex2f_Texture &rhs) const
Get a Vertex2f_Texture between two vertices; rhs must be a Vertex2f_Texture.
return Display return Display Bool Bool int d
virtual bool is_3d() const
Tell the rendering system if we're using 3D coordinates.
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 void render_to(Video_GL_Fixed &screen) const
Overridden for OpenGL rendering.
The OpenGL Rendering System.
Vertex2f_Color()
Initialize the Vertex2f_Color.
#define GL_TEXTURE_COORD_ARRAY
virtual void subrender_to(Video_GL_Fixed &screen) const
#define glDisableClientState
#define glTexCoordPointer
virtual Point3f get_position() const
virtual void render_to(Video_GL_Fixed &screen) const
Overridden for OpenGL rendering.
EGLSurface EGLint EGLint y
An Abstraction of a Vertex in 2-space, textured.
#define glEnableClientState
GLdouble GLdouble GLdouble b
GLint GLint GLint GLint z
virtual bool is_3d() const
Tell the rendering system if we're using 3D coordinates.
Point2f interpolate_to(const float &rhs_part, const Point2f &rhs) const
Get a point inbetween this point and another point of the same type.
Vertex2f_Color * interpolate_to(const float &rhs_part, const Vertex2f_Color &rhs) const
Get a Vertex2f_Color between two vertices; rhs must be a Vertex2f_Color.
Point3f interpolate_to(const float &rhs_part, const Point3f &rhs) const
A 2D Point represented with floats.
Point2f texture_coordinate
virtual void render_to(Video_GL_Fixed &screen) const
Overridden for OpenGL rendering.