FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
The main class of the OpenGL-based renderer. More...
#include <renderbackendopengl.h>
Classes | |
struct | currentState |
struct | renderData2TC |
struct | renderData2TCZ |
struct | renderDataColorZ |
struct | renderDataP |
struct | renderDataT |
struct | renderDataTC |
struct | renderDataZ |
class | RenderObject |
struct | RenderZObject |
struct | RenderZObjectTest |
Public Member Functions | |
RenderBackendOpenGL (const SDL_Color &colorkey) | |
virtual | ~RenderBackendOpenGL () |
virtual const std::string & | getName () const |
The name of the renderbackend. More... | |
virtual void | startFrame () |
Called when a new frame starts. More... | |
virtual void | endFrame () |
Called when a frame is finished and ready to be displayed. More... | |
virtual void | init (const std::string &driver) |
Initializes the backend. More... | |
virtual void | clearBackBuffer () |
Forces a clear of the backbuffer. More... | |
virtual void | setLightingModel (uint32_t lighting) |
Initializes the light. More... | |
virtual uint32_t | getLightingModel () const |
Gets the current light model. More... | |
virtual void | setLighting (float red, float green, float blue) |
Set colors for lighting. More... | |
virtual void | resetLighting () |
Reset lighting with default values. More... | |
virtual void | resetStencilBuffer (uint8_t buffer) |
Reset stencil buffer with given value. More... | |
virtual void | changeBlending (int32_t scr, int32_t dst) |
Change the Blendingmodel. More... | |
virtual void | createMainScreen (const ScreenMode &mode, const std::string &title, const std::string &icon) |
Creates the mainscreen (the display window). More... | |
virtual void | setScreenMode (const ScreenMode &mode) |
Sets the mainscreen display mode. More... | |
virtual Image * | createImage (IResourceLoader *loader=0) |
virtual Image * | createImage (const std::string &name, IResourceLoader *loader=0) |
virtual Image * | createImage (const uint8_t *data, uint32_t width, uint32_t height) |
Creates an Image suitable for this renderbackend. More... | |
virtual Image * | createImage (const std::string &name, const uint8_t *data, uint32_t width, uint32_t height) |
virtual Image * | createImage (SDL_Surface *surface) |
Helper function to create images from SDL_Surfaces. More... | |
virtual Image * | createImage (const std::string &name, SDL_Surface *surface) |
virtual void | renderVertexArrays () |
Render the Vertex Arrays, only for primitives (points, lines,...) More... | |
virtual void | addImageToArray (uint32_t id, const Rect &rec, float const *st, uint8_t alpha, uint8_t const *rgba) |
Add the Image data to the array. More... | |
virtual void | addImageToArray (const Rect &rect, uint32_t id1, float const *st1, uint32_t id2, float const *st2, uint8_t alpha, uint8_t const *rgba) |
virtual void | addImageToArrayZ (uint32_t id, const Rect &rect, float vertexZ, float const *st, uint8_t alpha, uint8_t const *rgba) |
virtual void | addImageToArrayZ (const Rect &rect, float vertexZ, uint32_t id1, float const *st1, uint32_t id2, float const *st2, uint8_t alpha, uint8_t const *rgba) |
virtual void | changeRenderInfos (RenderDataType type, uint16_t elements, int32_t src, int32_t dst, bool light, bool stentest, uint8_t stenref, GLConstants stenop, GLConstants stenfunc, OverlayType otype=OVERLAY_TYPE_NONE) |
Dirty helper function to change the render infos. More... | |
virtual void | captureScreen (const std::string &filename) |
Creates a Screenshot and saves it to a file. More... | |
virtual void | captureScreen (const std::string &filename, uint32_t width, uint32_t height) |
Creates a Screenshot with the given size(w,h) and saves it to a file. More... | |
virtual bool | putPixel (int32_t x, int32_t y, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) |
Writes pixel to given position. More... | |
virtual void | drawLine (const Point &p1, const Point &p2, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) |
Draws line between given points with given RGBA. More... | |
virtual void | drawThickLine (const Point &p1, const Point &p2, uint8_t width, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) |
Draws line between given points with given RGBA and width. More... | |
virtual void | drawPolyLine (const std::vector< Point > &points, uint8_t width, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) |
Draws lines between given points with given RGBA and width. More... | |
virtual void | drawBezier (const std::vector< Point > &points, int32_t steps, uint8_t width, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) |
Draws bezier curve between given points with given RGBA and width. More... | |
virtual void | drawTriangle (const Point &p1, const Point &p2, const Point &p3, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) |
Draws triangle between given points with given RGBA. More... | |
virtual void | drawRectangle (const Point &p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) |
Draws an axis parallel rectangle. More... | |
virtual void | fillRectangle (const Point &p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) |
Draws a filled axis parallel rectangle. More... | |
virtual void | drawQuad (const Point &p1, const Point &p2, const Point &p3, const Point &p4, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) |
Draws quad between given points with given RGBA. More... | |
virtual void | drawVertex (const Point &p, const uint8_t size, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) |
Draws a quad that represents a vertex with given RGBA. More... | |
virtual void | drawCircle (const Point &p, uint32_t radius, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) |
Draws a circle. More... | |
virtual void | drawFillCircle (const Point &p, uint32_t radius, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) |
Draws a filled circle. More... | |
virtual void | drawCircleSegment (const Point &p, uint32_t radius, int32_t sangle, int32_t eangle, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) |
Draws a circle segment. More... | |
virtual void | drawFillCircleSegment (const Point &p, uint32_t radius, int32_t sangle, int32_t eangle, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) |
Draws a filled circle segment. More... | |
virtual void | drawLightPrimitive (const Point &p, uint8_t intensity, float radius, int32_t subdivisions, float xstretch, float ystretch, uint8_t red, uint8_t green, uint8_t blue) |
Draws a light primitive that based on a triangle fan. More... | |
virtual void | enableScissorTest () |
Enables scissor test on the render backend. More... | |
virtual void | disableScissorTest () |
Disables scissor test on the render backend. More... | |
virtual void | attachRenderTarget (ImagePtr &img, bool discard) |
Attaches given image as a new render surface. More... | |
virtual void | detachRenderTarget () |
Detaches current render surface. More... | |
virtual void | renderGuiGeometry (const std::vector< GuiVertex > &vertices, const std::vector< int > &indices, const DoublePoint &translation, ImagePtr texture) |
Renders geometry required by gui. More... | |
void | enableTextures (uint32_t texUnit) |
void | disableTextures (uint32_t texUnit) |
void | bindTexture (uint32_t texUnit, GLuint texId) |
void | bindTexture (GLuint textId) |
Public Member Functions inherited from FIFE::RenderBackend | |
RenderBackend (const SDL_Color &colorkey) | |
Constructor. More... | |
virtual | ~RenderBackend () |
Destructor. More... | |
void | deinit () |
Performs cleanup actions. More... | |
SDL_Window * | getWindow () |
const ScreenMode & | getCurrentScreenMode () const |
Get current screen mode. More... | |
uint32_t | getWidth () const |
uint32_t | getHeight () const |
uint32_t | getScreenWidth () const |
uint32_t | getScreenHeight () const |
const Rect & | getArea () const |
void | pushClipArea (const Rect &cliparea, bool clear=true) |
Pushes clip area to clip stack Clip areas define which area is drawn on screen. More... | |
void | popClipArea () |
Pops clip area from clip stack. More... | |
const Rect & | getClipArea () const |
Gets the current clip area. More... | |
void | setAlphaOptimizerEnabled (bool enabled) |
Enable or disable the alpha 'optimizing' code. More... | |
bool | isAlphaOptimizerEnabled () const |
void | setImageCompressingEnabled (bool enabled) |
Enables or disable compressing images by video driver. More... | |
bool | isImageCompressingEnabled () const |
void | setFramebufferEnabled (bool enabled) |
Enables or disable the usage of the framebuffer, if available. More... | |
bool | isFramebufferEnabled () const |
void | setNPOTEnabled (bool enabled) |
Enables or disable the usage of npot, if available. More... | |
bool | isNPOTEnabled () const |
void | setTextureFiltering (TextureFiltering filter) |
Sets the texture filtering method. More... | |
TextureFiltering | getTextureFiltering () const |
void | setMipmappingEnabled (bool enabled) |
Enables or disables the usage of mipmapping. More... | |
bool | isMipmappingEnabled () const |
int32_t | getMaxAnisotropy () const |
Gets max antisotropy for antisotropic filtering. More... | |
void | setMonochromeEnabled (bool enabled) |
Enables or disables monochrome rendering. More... | |
bool | isMonochromeEnabled () const |
void | setDepthBufferEnabled (bool enabled) |
Enables or disables depth buffer rendering. More... | |
bool | isDepthBufferEnabled () const |
void | setAlphaTestValue (float alpha) |
Sets the value for alpha test. More... | |
float | getAlphaTestValue () const |
void | setColorKeyEnabled (bool colorkeyenable) |
Sets whether to use the colorkey feature. More... | |
bool | isColorKeyEnabled () const |
Gets whether the colorkey feature is in use. More... | |
void | setColorKey (const SDL_Color &colorkey) |
Sets the global colorkey to use for images. More... | |
const SDL_Color & | getColorKey () const |
Gets the global colorkey setting. More... | |
void | setBackgroundColor (uint8_t r, uint8_t g, uint8_t b) |
Set the background color. More... | |
void | resetBackgroundColor () |
Reset the background color to black. More... | |
const SDL_PixelFormat & | getPixelFormat () const |
Gets the current screen rgba format. More... | |
void | setVSyncEnabled (bool vsync) |
Sets whether to use VSync. More... | |
bool | isVSyncEnabled () const |
Gets whether VSync is in use. More... | |
void | setFrameLimitEnabled (bool limited) |
Sets whether to use the frame limiter. More... | |
bool | isFrameLimitEnabled () const |
Gets whether the frame limiter is in use. More... | |
void | setFrameLimit (uint16_t framelimit) |
Sets the frame limit. More... | |
uint16_t | getFrameLimit () const |
Gets the frame limit. More... | |
SDL_Surface * | getScreenSurface () |
Returns screen render surface. More... | |
SDL_Surface * | getRenderTargetSurface () |
Returns currently attached render surface. More... | |
Point | getBezierPoint (const std::vector< Point > &points, int32_t elements, float t) |
Helper that returns an interpolated Point. More... | |
void | addControlPoints (const std::vector< Point > &points, std::vector< Point > &newPoints) |
Helper that adds the control points for bezier curves. More... | |
Public Member Functions inherited from FIFE::DynamicSingleton< RenderBackend > | |
DynamicSingleton () | |
virtual | ~DynamicSingleton () |
Protected Member Functions | |
virtual void | setClipArea (const Rect &cliparea, bool clear) |
Sets given clip area into image. More... | |
void | enableLighting () |
void | disableLighting () |
void | enableStencilTest () |
void | disableStencilTest () |
void | setStencilTest (uint8_t stencil_ref, GLenum stencil_op, GLenum stencil_func) |
uint8_t | getStencilRef () const |
void | enableAlphaTest () |
void | disableAlphaTest () |
void | setAlphaTest (float ref_alpha) |
void | enableDepthTest () |
void | disableDepthTest () |
void | enableColorArray () |
void | disableColorArray () |
void | setEnvironmentalColor (uint32_t texUnit, const uint8_t *rgba) |
void | setVertexPointer (GLint size, GLsizei stride, const GLvoid *ptr) |
void | setColorPointer (GLsizei stride, const GLvoid *ptr) |
void | setTexCoordPointer (uint32_t texUnit, GLsizei stride, const GLvoid *ptr) |
void | prepareForOverlays () |
void | renderWithoutZ () |
void | renderWithZ () |
void | renderWithZTest () |
void | renderWithColorAndZ () |
void | renderWithMultitextureAndZ () |
RenderZObjectTest * | getRenderBufferObject (GLuint texture_id) |
Protected Member Functions inherited from FIFE::RenderBackend | |
void | clearClipArea () |
Clears any possible clip areas. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from FIFE::DynamicSingleton< RenderBackend > | |
static RenderBackend * | instance () |
The main class of the OpenGL-based renderer.
Definition at line 43 of file renderbackendopengl.h.
FIFE::RenderBackendOpenGL::RenderBackendOpenGL | ( | const SDL_Color & | colorkey | ) |
Definition at line 78 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::active_tex, FIFE::RenderBackendOpenGL::currentState::alpha_enabled, FIFE::RenderBackendOpenGL::currentState::alpha_test, FIFE::RenderBackendOpenGL::currentState::blend_dst, FIFE::RenderBackendOpenGL::currentState::blend_src, FIFE::RenderBackendOpenGL::currentState::color_enabled, FIFE::RenderBackendOpenGL::currentState::color_pointer, FIFE::RenderBackendOpenGL::currentState::depth_enabled, FIFE::RenderBackendOpenGL::currentState::env_color, FIFE::RenderBackendOpenGL::currentState::light_enabled, FIFE::RenderBackendOpenGL::currentState::lightmodel, m_state, FIFE::RenderBackendOpenGL::currentState::scissor_test, FIFE::RenderBackendOpenGL::currentState::sten_buf, FIFE::RenderBackendOpenGL::currentState::sten_enabled, FIFE::RenderBackendOpenGL::currentState::sten_func, FIFE::RenderBackendOpenGL::currentState::sten_op, FIFE::RenderBackendOpenGL::currentState::sten_ref, FIFE::RenderBackendOpenGL::currentState::tex_enabled, FIFE::RenderBackendOpenGL::currentState::tex_pointer, FIFE::RenderBackendOpenGL::currentState::texture, FIFE::RenderBackendOpenGL::currentState::vertex_pointer, and FIFE::RenderBackendOpenGL::currentState::vertex_pointer_size.
|
virtual |
Definition at line 120 of file renderbackendopengl.cpp.
References FIFE::RenderBackend::deinit(), m_context, m_fbo_id, m_maskOverlay, FIFE::RenderBackend::m_useframebuffer, and FIFE::RenderBackend::m_window.
|
virtual |
Add the Image data to the array.
Implements FIFE::RenderBackend.
Definition at line 1946 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::RenderObject::color, FIFE::RenderBackendOpenGL::renderDataTC::color, FIFE::RenderBackendOpenGL::renderData2TC::color, FIFE::RectType< T >::h, m_renderMultitextureDatas, m_renderObjects, m_renderTextureColorDatas, m_renderTextureDatas, m_tc2Indices, m_tcIndices, m_tIndices, FIFE::RenderBackendOpenGL::RenderObject::overlay_type, FIFE::OVERLAY_TYPE_COLOR, FIFE::RenderBackendOpenGL::RenderObject::rgba, FIFE::RenderBackendOpenGL::renderDataT::texel, FIFE::RenderBackendOpenGL::renderDataTC::texel, FIFE::RenderBackendOpenGL::renderData2TC::texel, FIFE::RenderBackendOpenGL::renderData2TC::texel2, FIFE::RenderBackendOpenGL::renderDataT::vertex, FIFE::RenderBackendOpenGL::renderDataTC::vertex, FIFE::RenderBackendOpenGL::renderData2TC::vertex, FIFE::RectType< T >::w, FIFE::RectType< T >::x, and FIFE::RectType< T >::y.
Referenced by attachRenderTarget().
|
virtual |
Definition at line 2059 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::renderData2TC::color, FIFE::RectType< T >::h, m_renderMultitextureDatas, m_renderObjects, m_tc2Indices, FIFE::RenderBackendOpenGL::RenderObject::overlay_type, FIFE::OVERLAY_TYPE_TEXTURES_AND_FACTOR, FIFE::RenderBackendOpenGL::RenderObject::rgba, FIFE::RenderBackendOpenGL::renderData2TC::texel, FIFE::RenderBackendOpenGL::renderData2TC::texel2, FIFE::RenderBackendOpenGL::renderData2TC::vertex, FIFE::RectType< T >::w, FIFE::RectType< T >::x, and FIFE::RectType< T >::y.
|
virtual |
Definition at line 2130 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::RenderObject::color, FIFE::RenderBackendOpenGL::renderDataColorZ::color, FIFE::RenderBackendOpenGL::renderData2TCZ::color, FIFE::RectType< T >::h, m_renderMultitextureDatasZ, m_renderMultitextureObjectsZ, m_renderTextureColorDatasZ, m_renderTextureColorObjectsZ, m_renderTextureDatasZ, m_renderTextureObjectsZ, FIFE::RenderBackendOpenGL::RenderObject::overlay_type, FIFE::OVERLAY_TYPE_COLOR, FIFE::RenderBackendOpenGL::RenderObject::rgba, FIFE::RenderBackendOpenGL::renderDataZ::texel, FIFE::RenderBackendOpenGL::renderDataColorZ::texel, FIFE::RenderBackendOpenGL::renderData2TCZ::texel, FIFE::RenderBackendOpenGL::renderData2TCZ::texel2, FIFE::RenderBackendOpenGL::RenderZObject::texture_id, FIFE::RenderBackendOpenGL::renderDataZ::vertex, FIFE::RenderBackendOpenGL::renderDataColorZ::vertex, FIFE::RenderBackendOpenGL::renderData2TCZ::vertex, FIFE::RectType< T >::w, FIFE::RectType< T >::x, and FIFE::RectType< T >::y.
|
virtual |
Definition at line 2271 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::renderData2TCZ::color, FIFE::RectType< T >::h, m_renderMultitextureDatasZ, m_renderMultitextureObjectsZ, FIFE::RenderBackendOpenGL::RenderObject::overlay_type, FIFE::OVERLAY_TYPE_TEXTURES_AND_FACTOR, FIFE::RenderBackendOpenGL::RenderObject::rgba, FIFE::RenderBackendOpenGL::renderData2TCZ::texel, FIFE::RenderBackendOpenGL::renderData2TCZ::texel2, FIFE::RenderBackendOpenGL::renderData2TCZ::vertex, FIFE::RectType< T >::w, FIFE::RectType< T >::x, and FIFE::RectType< T >::y.
|
virtual |
Attaches given image as a new render surface.
Implements FIFE::RenderBackend.
Definition at line 2591 of file renderbackendopengl.cpp.
References addImageToArray(), bindTexture(), FIFE::Image::forceLoadInternal(), FIFE::SharedPtr< T >::get(), FIFE::Image::getArea(), FIFE::Image::getHeight(), FIFE::Image::getSurface(), FIFE::GLImage::getTexId(), FIFE::Image::getWidth(), FIFE::GLImage::isCompressed(), m_fbo_id, m_img_target, FIFE::RenderBackend::m_target, m_target_discard, FIFE::RenderBackend::m_useframebuffer, renderVertexArrays(), and FIFE::GLImage::setCompressed().
void FIFE::RenderBackendOpenGL::bindTexture | ( | uint32_t | texUnit, |
GLuint | texId | ||
) |
Definition at line 492 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::active_client_tex, FIFE::RenderBackendOpenGL::currentState::active_tex, enableTextures(), m_state, and FIFE::RenderBackendOpenGL::currentState::texture.
Referenced by attachRenderTarget(), detachRenderTarget(), renderWithColorAndZ(), renderWithMultitextureAndZ(), renderWithoutZ(), renderWithZ(), and renderWithZTest().
void FIFE::RenderBackendOpenGL::bindTexture | ( | GLuint | textId | ) |
Definition at line 509 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::active_tex, m_state, and FIFE::RenderBackendOpenGL::currentState::texture.
|
virtual |
Creates a Screenshot and saves it to a file.
Implements FIFE::RenderBackend.
Definition at line 2432 of file renderbackendopengl.cpp.
References FIFE::BMASK, FIFE::RenderBackend::getHeight(), FIFE::RenderBackend::getWidth(), FIFE::GMASK, FIFE::NULLMASK, FIFE::RMASK, and FIFE::Image::saveAsPng().
Referenced by captureScreen().
|
virtual |
Creates a Screenshot with the given size(w,h) and saves it to a file.
Implements FIFE::RenderBackend.
Definition at line 2466 of file renderbackendopengl.cpp.
References FIFE::AMASK, FIFE::BMASK, captureScreen(), FIFE::RenderBackend::getHeight(), FIFE::RenderBackend::getWidth(), FIFE::GMASK, FIFE::RMASK, and FIFE::Image::saveAsPng().
|
virtual |
Change the Blendingmodel.
Implements FIFE::RenderBackend.
Definition at line 701 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::blend_dst, FIFE::RenderBackendOpenGL::currentState::blend_src, and m_state.
Referenced by renderWithoutZ().
|
virtual |
Dirty helper function to change the render infos.
Implements FIFE::RenderBackend.
Definition at line 738 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::RenderObject::dst, FIFE::RenderBackendOpenGL::RenderObject::light, m_renderMultitextureObjectsZ, m_renderObjects, FIFE::RenderBackendOpenGL::RenderObject::overlay_type, FIFE::RENDER_DATA_MULTITEXTURE_Z, FIFE::RENDER_DATA_TEXCOLOR_Z, FIFE::RENDER_DATA_TEXTURE_Z, FIFE::RENDER_DATA_WITHOUT_Z, FIFE::RenderBackendOpenGL::RenderObject::src, FIFE::RenderBackendOpenGL::RenderObject::stencil_func, FIFE::RenderBackendOpenGL::RenderObject::stencil_op, FIFE::RenderBackendOpenGL::RenderObject::stencil_ref, and FIFE::RenderBackendOpenGL::RenderObject::stencil_test.
|
virtual |
Forces a clear of the backbuffer.
Implements FIFE::RenderBackend.
Definition at line 161 of file renderbackendopengl.cpp.
References disableScissorTest(), and enableScissorTest().
|
virtual |
Implements FIFE::RenderBackend.
Definition at line 355 of file renderbackendopengl.cpp.
|
virtual |
Implements FIFE::RenderBackend.
Definition at line 359 of file renderbackendopengl.cpp.
|
virtual |
Creates an Image suitable for this renderbackend.
data | Pointer to the imagedata (needs to be in RGBA, 8 bits per channel). |
width | Width of the image. |
height | Height of the image. |
Implements FIFE::RenderBackend.
Definition at line 431 of file renderbackendopengl.cpp.
|
virtual |
Implements FIFE::RenderBackend.
Definition at line 435 of file renderbackendopengl.cpp.
|
virtual |
Helper function to create images from SDL_Surfaces.
Takes ownership over the surface.
surface | The surface to convert. |
Implements FIFE::RenderBackend.
Definition at line 363 of file renderbackendopengl.cpp.
References FIFE::RenderBackend::m_rgba_format.
|
virtual |
Implements FIFE::RenderBackend.
Definition at line 397 of file renderbackendopengl.cpp.
References FIFE::RenderBackend::m_rgba_format.
|
virtual |
Creates the mainscreen (the display window).
mode | The ScreenMode to use. |
title | The window title to use. |
icon | The window icon to use. |
Implements FIFE::RenderBackend.
Definition at line 167 of file renderbackendopengl.cpp.
References FIFE::RenderBackend::m_window, and setScreenMode().
|
virtual |
Detaches current render surface.
Implements FIFE::RenderBackend.
Definition at line 2650 of file renderbackendopengl.cpp.
References bindTexture(), FIFE::SharedPtr< T >::get(), FIFE::Image::getHeight(), FIFE::Image::getWidth(), m_img_target, FIFE::RenderBackend::m_screen, FIFE::RenderBackend::m_target, FIFE::RenderBackend::m_useframebuffer, and renderVertexArrays().
|
protected |
Definition at line 592 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::alpha_enabled, and m_state.
Referenced by renderWithColorAndZ(), renderWithMultitextureAndZ(), renderWithoutZ(), renderWithZ(), and renderWithZTest().
|
protected |
Definition at line 628 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::color_enabled, and m_state.
Referenced by renderWithoutZ(), renderWithZ(), and renderWithZTest().
|
protected |
Definition at line 614 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::depth_enabled, and m_state.
Referenced by renderWithColorAndZ(), renderWithMultitextureAndZ(), renderWithoutZ(), renderWithZ(), and renderWithZTest().
|
protected |
Definition at line 523 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::light_enabled, FIFE::RenderBackendOpenGL::currentState::lightmodel, and m_state.
Referenced by renderWithColorAndZ(), renderWithMultitextureAndZ(), renderWithoutZ(), renderWithZ(), renderWithZTest(), and setLightingModel().
|
virtual |
Disables scissor test on the render backend.
Implements FIFE::RenderBackend.
Definition at line 694 of file renderbackendopengl.cpp.
References m_state, and FIFE::RenderBackendOpenGL::currentState::scissor_test.
Referenced by clearBackBuffer(), and resetStencilBuffer().
|
protected |
Definition at line 550 of file renderbackendopengl.cpp.
References m_state, and FIFE::RenderBackendOpenGL::currentState::sten_enabled.
Referenced by renderWithoutZ().
void FIFE::RenderBackendOpenGL::disableTextures | ( | uint32_t | texUnit | ) |
Definition at line 475 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::active_client_tex, FIFE::RenderBackendOpenGL::currentState::active_tex, m_state, and FIFE::RenderBackendOpenGL::currentState::tex_enabled.
Referenced by renderWithColorAndZ(), renderWithMultitextureAndZ(), renderWithoutZ(), renderWithZ(), and renderWithZTest().
|
virtual |
Draws bezier curve between given points with given RGBA and width.
Implements FIFE::RenderBackend.
Definition at line 1605 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::renderDataP::color, drawFillCircle(), drawThickLine(), FIFE::RenderBackend::getBezierPoint(), m_pIndices, m_renderObjects, m_renderPrimitiveDatas, utf8::next(), FIFE::RenderBackendOpenGL::renderDataP::vertex, FIFE::PointType2D< T >::x, and FIFE::PointType2D< T >::y.
Referenced by FIFE::OpenGLGuiGraphics::drawBezier().
|
virtual |
Draws a circle.
Implements FIFE::RenderBackend.
Definition at line 1784 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::renderDataP::color, FIFE::Math< T >::Cos(), m_pIndices, m_renderObjects, m_renderPrimitiveDatas, FIFE::Math< T >::pi(), FIFE::Math< T >::Sin(), FIFE::Math< T >::twoPi(), FIFE::RenderBackendOpenGL::renderDataP::vertex, FIFE::PointType2D< T >::x, and FIFE::PointType2D< T >::y.
Referenced by FIFE::OpenGLGuiGraphics::drawCircle().
|
virtual |
Draws a circle segment.
Note: The start angle must be less than the end angle. 0 angle is right side.
Implements FIFE::RenderBackend.
Definition at line 1844 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::renderDataP::color, FIFE::Math< T >::Cos(), m_pIndices, m_renderObjects, m_renderPrimitiveDatas, FIFE::Math< T >::Sin(), FIFE::Math< T >::twoPi(), FIFE::RenderBackendOpenGL::renderDataP::vertex, FIFE::PointType2D< T >::x, and FIFE::PointType2D< T >::y.
Referenced by FIFE::OpenGLGuiGraphics::drawCircleSegment().
|
virtual |
Draws a filled circle.
Implements FIFE::RenderBackend.
Definition at line 1810 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::renderDataP::color, FIFE::Math< T >::Cos(), m_pIndices, m_renderObjects, m_renderPrimitiveDatas, FIFE::Math< T >::pi(), FIFE::Math< T >::Sin(), FIFE::Math< T >::twoPi(), FIFE::RenderBackendOpenGL::renderDataP::vertex, FIFE::PointType2D< T >::x, and FIFE::PointType2D< T >::y.
Referenced by drawBezier(), FIFE::OpenGLGuiGraphics::drawFillCircle(), and drawPolyLine().
|
virtual |
Draws a filled circle segment.
0 angle is right side. Note: The start angle must be less than the end angle.
Implements FIFE::RenderBackend.
Definition at line 1873 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::renderDataP::color, FIFE::Math< T >::Cos(), m_pIndices, m_renderObjects, m_renderPrimitiveDatas, FIFE::Math< T >::Sin(), FIFE::Math< T >::twoPi(), FIFE::RenderBackendOpenGL::renderDataP::vertex, FIFE::PointType2D< T >::x, and FIFE::PointType2D< T >::y.
Referenced by FIFE::OpenGLGuiGraphics::drawFillCircleSegment().
|
virtual |
Draws a light primitive that based on a triangle fan.
Implements FIFE::RenderBackend.
Definition at line 1912 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::renderDataP::color, FIFE::Math< T >::Cos(), m_pIndices, m_renderObjects, m_renderPrimitiveDatas, FIFE::Math< T >::Sin(), FIFE::Math< T >::twoPi(), FIFE::RenderBackendOpenGL::renderDataP::vertex, FIFE::PointType2D< T >::x, and FIFE::PointType2D< T >::y.
|
virtual |
Draws line between given points with given RGBA.
Implements FIFE::RenderBackend.
Definition at line 1513 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::renderDataP::color, m_pIndices, m_renderObjects, m_renderPrimitiveDatas, FIFE::RenderBackendOpenGL::renderDataP::vertex, FIFE::PointType2D< T >::x, and FIFE::PointType2D< T >::y.
Referenced by FIFE::OpenGLGuiGraphics::drawLine().
|
virtual |
Draws lines between given points with given RGBA and width.
Implements FIFE::RenderBackend.
Definition at line 1574 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::renderDataP::color, drawFillCircle(), drawThickLine(), m_pIndices, m_renderObjects, m_renderPrimitiveDatas, and FIFE::RenderBackendOpenGL::renderDataP::vertex.
Referenced by FIFE::OpenGLGuiGraphics::drawPolyLine().
|
virtual |
Draws quad between given points with given RGBA.
Implements FIFE::RenderBackend.
Definition at line 1727 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::renderDataP::color, m_pIndices, m_renderObjects, m_renderPrimitiveDatas, FIFE::RenderBackendOpenGL::renderDataP::vertex, FIFE::PointType2D< T >::x, and FIFE::PointType2D< T >::y.
|
virtual |
Draws an axis parallel rectangle.
Implements FIFE::RenderBackend.
Definition at line 1673 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::renderDataP::color, m_pIndices, m_renderObjects, m_renderPrimitiveDatas, FIFE::RenderBackendOpenGL::renderDataP::vertex, FIFE::PointType2D< T >::x, and FIFE::PointType2D< T >::y.
Referenced by FIFE::OpenGLGuiGraphics::drawRectangle().
|
virtual |
Draws line between given points with given RGBA and width.
Implements FIFE::RenderBackend.
Definition at line 1534 of file renderbackendopengl.cpp.
References FIFE::Math< T >::ATan2(), FIFE::RenderBackendOpenGL::renderDataP::color, FIFE::Math< T >::Cos(), m_pIndices, m_renderObjects, m_renderPrimitiveDatas, FIFE::Math< T >::pi(), FIFE::Math< T >::Sin(), FIFE::RenderBackendOpenGL::renderDataP::vertex, FIFE::PointType2D< T >::x, and FIFE::PointType2D< T >::y.
Referenced by drawBezier(), FIFE::OpenGLGuiGraphics::drawLine(), and drawPolyLine().
|
virtual |
Draws triangle between given points with given RGBA.
Implements FIFE::RenderBackend.
Definition at line 1647 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::renderDataP::color, m_pIndices, m_renderObjects, m_renderPrimitiveDatas, FIFE::RenderBackendOpenGL::renderDataP::vertex, FIFE::PointType2D< T >::x, and FIFE::PointType2D< T >::y.
|
virtual |
Draws a quad that represents a vertex with given RGBA.
Implements FIFE::RenderBackend.
Definition at line 1757 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::renderDataP::color, m_pIndices, m_renderObjects, m_renderPrimitiveDatas, FIFE::RenderBackendOpenGL::renderDataP::vertex, FIFE::PointType2D< T >::x, and FIFE::PointType2D< T >::y.
|
protected |
Definition at line 585 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::alpha_enabled, and m_state.
Referenced by renderWithMultitextureAndZ(), renderWithZ(), renderWithZTest(), and setAlphaTest().
|
protected |
Definition at line 621 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::color_enabled, and m_state.
Referenced by renderWithoutZ(), renderWithZ(), and renderWithZTest().
|
protected |
Definition at line 607 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::depth_enabled, and m_state.
Referenced by renderWithColorAndZ(), renderWithMultitextureAndZ(), renderWithZ(), and renderWithZTest().
|
protected |
Definition at line 516 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::light_enabled, FIFE::RenderBackendOpenGL::currentState::lightmodel, and m_state.
Referenced by renderWithColorAndZ(), renderWithMultitextureAndZ(), renderWithoutZ(), renderWithZ(), renderWithZTest(), and setLightingModel().
|
virtual |
Enables scissor test on the render backend.
Implements FIFE::RenderBackend.
Definition at line 687 of file renderbackendopengl.cpp.
References m_state, and FIFE::RenderBackendOpenGL::currentState::scissor_test.
Referenced by clearBackBuffer(), and resetStencilBuffer().
|
protected |
Definition at line 543 of file renderbackendopengl.cpp.
References m_state, and FIFE::RenderBackendOpenGL::currentState::sten_enabled.
Referenced by setStencilTest().
void FIFE::RenderBackendOpenGL::enableTextures | ( | uint32_t | texUnit | ) |
Definition at line 458 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::active_client_tex, FIFE::RenderBackendOpenGL::currentState::active_tex, m_state, and FIFE::RenderBackendOpenGL::currentState::tex_enabled.
Referenced by bindTexture(), renderWithColorAndZ(), renderWithMultitextureAndZ(), renderWithoutZ(), renderWithZ(), and renderWithZTest().
|
virtual |
Called when a frame is finished and ready to be displayed.
Reimplemented from FIFE::RenderBackend.
Definition at line 348 of file renderbackendopengl.cpp.
References FIFE::RenderBackend::endFrame(), and FIFE::RenderBackend::m_window.
|
virtual |
Draws a filled axis parallel rectangle.
Implements FIFE::RenderBackend.
Definition at line 1700 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::renderDataP::color, m_pIndices, m_renderObjects, m_renderPrimitiveDatas, FIFE::RenderBackendOpenGL::renderDataP::vertex, FIFE::PointType2D< T >::x, and FIFE::PointType2D< T >::y.
Referenced by FIFE::OpenGLGuiGraphics::fillRectangle().
|
virtual |
Gets the current light model.
Implements FIFE::RenderBackend.
Definition at line 454 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::lightmodel, and m_state.
|
virtual |
The name of the renderbackend.
Implements FIFE::RenderBackend.
Definition at line 130 of file renderbackendopengl.cpp.
|
protected |
Definition at line 2106 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::RenderZObjectTest::elements, FIFE::RenderBackendOpenGL::RenderZObjectTest::index, m_renderZ_objects, FIFE::RenderBackendOpenGL::RenderZObjectTest::max_size, and FIFE::RenderBackendOpenGL::RenderZObjectTest::texture_id.
|
protected |
Definition at line 581 of file renderbackendopengl.cpp.
References m_state, and FIFE::RenderBackendOpenGL::currentState::sten_ref.
|
virtual |
Initializes the backend.
Implements FIFE::RenderBackend.
Definition at line 135 of file renderbackendopengl.cpp.
|
protected |
Definition at line 2315 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::active_client_tex, FIFE::RenderBackendOpenGL::currentState::active_tex, m_maskOverlay, m_state, and FIFE::RenderBackendOpenGL::currentState::texture.
Referenced by setScreenMode().
|
virtual |
Writes pixel to given position.
Returns true, if pixel was written (not out of bounds)
Implements FIFE::RenderBackend.
Definition at line 1491 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::renderDataP::color, m_pIndices, m_renderObjects, m_renderPrimitiveDatas, FIFE::RenderBackend::m_target, and FIFE::RenderBackendOpenGL::renderDataP::vertex.
Referenced by FIFE::OpenGLGuiGraphics::drawLine(), and FIFE::OpenGLGuiGraphics::drawPoint().
|
virtual |
Renders geometry required by gui.
Implements FIFE::RenderBackend.
Definition at line 2673 of file renderbackendopengl.cpp.
References FIFE::GLImage::forceLoadInternal(), FIFE::SharedPtr< T >::get(), FIFE::GLImage::getTexId(), FIFE::PointType2D< T >::x, and FIFE::PointType2D< T >::y.
|
virtual |
Render the Vertex Arrays, only for primitives (points, lines,...)
Implements FIFE::RenderBackend.
Definition at line 1470 of file renderbackendopengl.cpp.
References m_renderMultitextureObjectsZ, m_renderObjects, m_renderTextureColorObjectsZ, m_renderTextureObjectsZ, m_renderZ_objects, renderWithColorAndZ(), renderWithMultitextureAndZ(), renderWithoutZ(), renderWithZ(), and renderWithZTest().
Referenced by FIFE::OpenGLGuiGraphics::_endDraw(), attachRenderTarget(), detachRenderTarget(), FIFE::OpenGLGuiGraphics::popClipArea(), and FIFE::OpenGLGuiGraphics::pushClipArea().
|
protected |
Definition at line 1265 of file renderbackendopengl.cpp.
References bindTexture(), disableAlphaTest(), disableDepthTest(), disableLighting(), disableTextures(), enableDepthTest(), enableLighting(), enableTextures(), FIFE::RenderBackend::m_alphaValue, m_indices, m_renderTextureColorDatasZ, m_renderTextureColorObjectsZ, setAlphaTest(), setColorPointer(), setTexCoordPointer(), setVertexPointer(), and FIFE::RenderBackendOpenGL::RenderZObject::texture_id.
Referenced by renderVertexArrays().
|
protected |
Definition at line 1330 of file renderbackendopengl.cpp.
References bindTexture(), disableAlphaTest(), disableDepthTest(), disableLighting(), disableTextures(), enableAlphaTest(), enableDepthTest(), enableLighting(), enableTextures(), m_indices, m_maskOverlay, m_renderMultitextureDatasZ, m_renderMultitextureObjectsZ, FIFE::RenderBackendOpenGL::RenderObject::overlay_id, FIFE::RenderBackendOpenGL::RenderObject::overlay_type, FIFE::OVERLAY_TYPE_COLOR, FIFE::OVERLAY_TYPE_COLOR_AND_TEXTURE, FIFE::OVERLAY_TYPE_NONE, FIFE::OVERLAY_TYPE_TEXTURES_AND_FACTOR, FIFE::RenderBackendOpenGL::RenderObject::rgba, setColorPointer(), setEnvironmentalColor(), setTexCoordPointer(), setVertexPointer(), FIFE::RenderBackendOpenGL::RenderObject::size, and FIFE::RenderBackendOpenGL::RenderObject::texture_id.
Referenced by renderVertexArrays().
|
protected |
Definition at line 791 of file renderbackendopengl.cpp.
References bindTexture(), changeBlending(), FIFE::RenderBackendOpenGL::RenderObject::color, FIFE::RenderBackendOpenGL::currentState::color_enabled, disableAlphaTest(), disableColorArray(), disableDepthTest(), disableLighting(), disableStencilTest(), disableTextures(), FIFE::RenderBackendOpenGL::RenderObject::dst, enableColorArray(), enableLighting(), enableTextures(), FIFE::RenderBackendOpenGL::RenderObject::light, FIFE::RenderBackendOpenGL::currentState::light_enabled, FIFE::RenderBackendOpenGL::currentState::lightmodel, m_maskOverlay, m_pIndices, m_renderMultitextureDatas, m_renderObjects, m_renderPrimitiveDatas, m_renderTextureColorDatas, m_renderTextureDatas, m_state, m_tc2Indices, m_tcIndices, m_tIndices, FIFE::RenderBackendOpenGL::RenderObject::mode, FIFE::RenderBackendOpenGL::RenderObject::overlay_id, FIFE::RenderBackendOpenGL::RenderObject::overlay_type, FIFE::OVERLAY_TYPE_COLOR, FIFE::OVERLAY_TYPE_COLOR_AND_TEXTURE, FIFE::OVERLAY_TYPE_NONE, FIFE::OVERLAY_TYPE_TEXTURES_AND_FACTOR, FIFE::RenderBackendOpenGL::RenderObject::rgba, setAlphaTest(), setColorPointer(), setEnvironmentalColor(), setStencilTest(), setTexCoordPointer(), setVertexPointer(), FIFE::RenderBackendOpenGL::RenderObject::size, FIFE::RenderBackendOpenGL::RenderObject::src, FIFE::RenderBackendOpenGL::currentState::sten_enabled, FIFE::RenderBackendOpenGL::currentState::sten_func, FIFE::RenderBackendOpenGL::currentState::sten_op, FIFE::RenderBackendOpenGL::currentState::sten_ref, FIFE::RenderBackendOpenGL::RenderObject::stencil_func, FIFE::RenderBackendOpenGL::RenderObject::stencil_op, FIFE::RenderBackendOpenGL::RenderObject::stencil_ref, FIFE::RenderBackendOpenGL::RenderObject::stencil_test, and FIFE::RenderBackendOpenGL::RenderObject::texture_id.
Referenced by renderVertexArrays().
|
protected |
Definition at line 1172 of file renderbackendopengl.cpp.
References bindTexture(), disableAlphaTest(), disableColorArray(), disableDepthTest(), disableLighting(), disableTextures(), enableAlphaTest(), enableColorArray(), enableDepthTest(), enableLighting(), enableTextures(), m_indices, m_renderTextureDatasZ, m_renderTextureObjectsZ, setTexCoordPointer(), setVertexPointer(), and FIFE::RenderBackendOpenGL::RenderZObject::texture_id.
Referenced by renderVertexArrays().
|
protected |
Definition at line 1236 of file renderbackendopengl.cpp.
References bindTexture(), disableAlphaTest(), disableColorArray(), disableDepthTest(), disableLighting(), disableTextures(), enableAlphaTest(), enableColorArray(), enableDepthTest(), enableLighting(), enableTextures(), m_renderZ_datas, m_renderZ_objects, setTexCoordPointer(), and setVertexPointer().
Referenced by renderVertexArrays().
|
virtual |
Reset lighting with default values.
Implements FIFE::RenderBackend.
Definition at line 537 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::lightmodel, m_state, and setLighting().
|
virtual |
Reset stencil buffer with given value.
Implements FIFE::RenderBackend.
Definition at line 571 of file renderbackendopengl.cpp.
References disableScissorTest(), enableScissorTest(), m_state, and FIFE::RenderBackendOpenGL::currentState::sten_buf.
|
protected |
Definition at line 599 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::alpha_test, enableAlphaTest(), FIFE::Math< T >::Equal(), and m_state.
Referenced by renderWithColorAndZ(), renderWithoutZ(), and setScreenMode().
|
protectedvirtual |
Sets given clip area into image.
Implements FIFE::RenderBackend.
Definition at line 2577 of file renderbackendopengl.cpp.
References FIFE::RenderBackend::getHeight(), FIFE::RectType< T >::h, FIFE::RenderBackend::m_backgroundcolor, FIFE::RenderBackend::m_isbackgroundcolor, FIFE::RectType< T >::w, FIFE::RectType< T >::x, and FIFE::RectType< T >::y.
|
protected |
Definition at line 665 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::color_pointer, and m_state.
Referenced by renderWithColorAndZ(), renderWithMultitextureAndZ(), and renderWithoutZ().
|
protected |
Definition at line 636 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::active_client_tex, FIFE::RenderBackendOpenGL::currentState::active_tex, FIFE::RenderBackendOpenGL::currentState::env_color, and m_state.
Referenced by renderWithMultitextureAndZ(), and renderWithoutZ().
|
virtual |
Set colors for lighting.
Implements FIFE::RenderBackend.
Definition at line 530 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::lightmodel, and m_state.
Referenced by resetLighting().
|
virtual |
Initializes the light.
Implements FIFE::RenderBackend.
Definition at line 439 of file renderbackendopengl.cpp.
References disableLighting(), enableLighting(), FIFE::RenderBackendOpenGL::currentState::lightmodel, and m_state.
|
virtual |
Sets the mainscreen display mode.
mode | The ScreenMode to change the display to. |
Implements FIFE::RenderBackend.
Definition at line 181 of file renderbackendopengl.cpp.
References FIFE::_log, FIFE::AMASK, FIFE::BMASK, FL_LOG, FIFE::ScreenMode::getBPP(), FIFE::ScreenMode::getDisplay(), FIFE::ScreenMode::getFormat(), FIFE::ScreenMode::getHeight(), FIFE::ScreenMode::getRefreshRate(), FIFE::ScreenMode::getSDLFlags(), FIFE::ScreenMode::getWidth(), FIFE::GMASK, FIFE::ScreenMode::isFullScreen(), FIFE::RenderBackend::m_alphaValue, m_context, m_fbo_id, m_indices, FIFE::RenderBackend::m_maxAnisotropy, FIFE::RenderBackend::m_rgba_format, FIFE::RenderBackend::m_screen, FIFE::RenderBackend::m_screenMode, FIFE::RenderBackend::m_target, FIFE::RenderBackend::m_textureFilter, FIFE::RenderBackend::m_useframebuffer, FIFE::RenderBackend::m_vSync, FIFE::RenderBackend::m_window, prepareForOverlays(), FIFE::RMASK, setAlphaTest(), FIFE::TEXTURE_FILTER_ANISOTROPIC, and FIFE::TEXTURE_FILTER_TRILINEAR.
Referenced by createMainScreen().
|
protected |
Definition at line 557 of file renderbackendopengl.cpp.
References enableStencilTest(), m_state, FIFE::RenderBackendOpenGL::currentState::sten_func, FIFE::RenderBackendOpenGL::currentState::sten_op, and FIFE::RenderBackendOpenGL::currentState::sten_ref.
Referenced by renderWithoutZ().
|
protected |
Definition at line 672 of file renderbackendopengl.cpp.
References FIFE::RenderBackendOpenGL::currentState::active_client_tex, FIFE::RenderBackendOpenGL::currentState::active_tex, m_state, and FIFE::RenderBackendOpenGL::currentState::tex_pointer.
Referenced by renderWithColorAndZ(), renderWithMultitextureAndZ(), renderWithoutZ(), renderWithZ(), and renderWithZTest().
|
protected |
Definition at line 657 of file renderbackendopengl.cpp.
References m_state, FIFE::RenderBackendOpenGL::currentState::vertex_pointer, and FIFE::RenderBackendOpenGL::currentState::vertex_pointer_size.
Referenced by renderWithColorAndZ(), renderWithMultitextureAndZ(), renderWithoutZ(), renderWithZ(), and renderWithZTest().
|
virtual |
Called when a new frame starts.
Reimplemented from FIFE::RenderBackend.
Definition at line 344 of file renderbackendopengl.cpp.
References FIFE::RenderBackend::startFrame().
|
protected |
Definition at line 281 of file renderbackendopengl.h.
Referenced by setScreenMode(), and ~RenderBackendOpenGL().
|
protected |
Definition at line 275 of file renderbackendopengl.h.
Referenced by attachRenderTarget(), setScreenMode(), and ~RenderBackendOpenGL().
|
protected |
Definition at line 279 of file renderbackendopengl.h.
Referenced by attachRenderTarget(), and detachRenderTarget().
|
protected |
Definition at line 276 of file renderbackendopengl.h.
|
protected |
static indices for vertex data with z
Definition at line 278 of file renderbackendopengl.h.
Referenced by renderWithColorAndZ(), renderWithMultitextureAndZ(), renderWithZ(), and setScreenMode().
|
protected |
Definition at line 131 of file renderbackendopengl.h.
Referenced by prepareForOverlays(), renderWithMultitextureAndZ(), renderWithoutZ(), and ~RenderBackendOpenGL().
|
protected |
Definition at line 218 of file renderbackendopengl.h.
Referenced by drawBezier(), drawCircle(), drawCircleSegment(), drawFillCircle(), drawFillCircleSegment(), drawLightPrimitive(), drawLine(), drawPolyLine(), drawQuad(), drawRectangle(), drawThickLine(), drawTriangle(), drawVertex(), fillRectangle(), putPixel(), and renderWithoutZ().
|
protected |
Definition at line 237 of file renderbackendopengl.h.
|
protected |
Definition at line 238 of file renderbackendopengl.h.
|
protected |
Definition at line 214 of file renderbackendopengl.h.
Referenced by addImageToArray(), and renderWithoutZ().
|
protected |
Definition at line 233 of file renderbackendopengl.h.
Referenced by addImageToArrayZ(), and renderWithMultitextureAndZ().
|
protected |
Definition at line 234 of file renderbackendopengl.h.
Referenced by addImageToArrayZ(), changeRenderInfos(), renderVertexArrays(), and renderWithMultitextureAndZ().
|
protected |
Definition at line 215 of file renderbackendopengl.h.
Referenced by addImageToArray(), changeRenderInfos(), drawBezier(), drawCircle(), drawCircleSegment(), drawFillCircle(), drawFillCircleSegment(), drawLightPrimitive(), drawLine(), drawPolyLine(), drawQuad(), drawRectangle(), drawThickLine(), drawTriangle(), drawVertex(), fillRectangle(), putPixel(), renderVertexArrays(), and renderWithoutZ().
|
protected |
Definition at line 208 of file renderbackendopengl.h.
Referenced by drawBezier(), drawCircle(), drawCircleSegment(), drawFillCircle(), drawFillCircleSegment(), drawLightPrimitive(), drawLine(), drawPolyLine(), drawQuad(), drawRectangle(), drawThickLine(), drawTriangle(), drawVertex(), fillRectangle(), putPixel(), and renderWithoutZ().
|
protected |
Definition at line 212 of file renderbackendopengl.h.
Referenced by addImageToArray(), and renderWithoutZ().
|
protected |
Definition at line 229 of file renderbackendopengl.h.
Referenced by addImageToArrayZ(), and renderWithColorAndZ().
|
protected |
Definition at line 230 of file renderbackendopengl.h.
Referenced by addImageToArrayZ(), renderVertexArrays(), and renderWithColorAndZ().
|
protected |
Definition at line 210 of file renderbackendopengl.h.
Referenced by addImageToArray(), and renderWithoutZ().
|
protected |
Definition at line 225 of file renderbackendopengl.h.
Referenced by addImageToArrayZ(), and renderWithZ().
|
protected |
Definition at line 226 of file renderbackendopengl.h.
Referenced by addImageToArrayZ(), renderVertexArrays(), and renderWithZ().
|
protected |
Definition at line 203 of file renderbackendopengl.h.
Referenced by renderWithZTest().
|
protected |
Definition at line 204 of file renderbackendopengl.h.
Referenced by getRenderBufferObject(), renderVertexArrays(), and renderWithZTest().
|
protected |
Referenced by bindTexture(), changeBlending(), disableAlphaTest(), disableColorArray(), disableDepthTest(), disableLighting(), disableScissorTest(), disableStencilTest(), disableTextures(), enableAlphaTest(), enableColorArray(), enableDepthTest(), enableLighting(), enableScissorTest(), enableStencilTest(), enableTextures(), getLightingModel(), getStencilRef(), prepareForOverlays(), RenderBackendOpenGL(), renderWithoutZ(), resetLighting(), resetStencilBuffer(), setAlphaTest(), setColorPointer(), setEnvironmentalColor(), setLighting(), setLightingModel(), setStencilTest(), setTexCoordPointer(), and setVertexPointer().
|
protected |
Definition at line 280 of file renderbackendopengl.h.
Referenced by attachRenderTarget().
|
protected |
Definition at line 221 of file renderbackendopengl.h.
Referenced by addImageToArray(), and renderWithoutZ().
|
protected |
Definition at line 220 of file renderbackendopengl.h.
Referenced by addImageToArray(), and renderWithoutZ().
|
protected |
Definition at line 219 of file renderbackendopengl.h.
Referenced by addImageToArray(), and renderWithoutZ().