#include <OgreSDLRenderSystem.h>
Inheritance diagram for Ogre::SDLRenderSystem:
Public Methods | |
SDLRenderSystem () | |
~SDLRenderSystem () | |
const String & | getName (void) const |
See RenderSystem. More... | |
ConfigOptionMap & | getConfigOptions (void) |
See RenderSystem. More... | |
void | setConfigOption (const String &name, const String &value) |
See RenderSystem. More... | |
String | validateConfigOptions (void) |
See RenderSystem. More... | |
RenderWindow * | initialise (bool autoCreateWindow) |
See RenderSystem. More... | |
void | reinitialise (void) |
See RenderSystem. More... | |
void | shutdown (void) |
See RenderSystem. More... | |
void | startRendering (void) |
See RenderSystem. More... | |
void | setAmbientLight (float r, float g, float b) |
See RenderSystem. More... | |
void | setShadingType (ShadeOptions so) |
See RenderSystem. More... | |
void | setTextureFiltering (TextureFilterOptions fo) |
See RenderSystem. More... | |
void | setLightingEnabled (bool enabled) |
See RenderSystem. More... | |
RenderWindow * | createRenderWindow (const String &name, int width, int height, int colourDepth, bool fullScreen, int left=0, int top=0, bool depthBuffer=true, RenderWindow *parentWindowHandle=0) |
See RenderSystem. More... | |
RenderTexture * | createRenderTexture (const String &name, int width, int height) |
Creates and registers a render texture object. More... | |
void | destroyRenderWindow (RenderWindow *pWin) |
See RenderSystem. More... | |
String | getErrorDescription (long errorNumber) |
See RenderSystem. More... | |
void | convertColourValue (const ColourValue &colour, unsigned long *pDest) |
See RenderSystem. More... | |
void | _addLight (Light *lt) |
See RenderSystem. More... | |
void | _removeLight (Light *lt) |
See RenderSystem. More... | |
void | _modifyLight (Light *lt) |
See RenderSystem. More... | |
void | _removeAllLights (void) |
See RenderSystem. More... | |
void | _pushRenderState (void) |
See RenderSystem. More... | |
void | _popRenderState (void) |
See RenderSystem. More... | |
void | _setWorldMatrix (const Matrix4 &m) |
See RenderSystem. More... | |
void | _setViewMatrix (const Matrix4 &m) |
See RenderSystem. More... | |
void | _setProjectionMatrix (const Matrix4 &m) |
See RenderSystem. More... | |
void | _setSurfaceParams (const ColourValue &ambient, const ColourValue &diffuse, const ColourValue &specular, const ColourValue &emissive, Real shininess) |
See RenderSystem. More... | |
unsigned short | _getNumTextureUnits (void) |
See RenderSystem. More... | |
void | _setTexture (int unit, bool enabled, const String &texname) |
See RenderSystem. More... | |
void | _setTextureCoordSet (int stage, int index) |
See RenderSystem. More... | |
void | _setTextureCoordCalculation (int stage, TexCoordCalcMethod m) |
See RenderSystem. More... | |
void | _setTextureBlendMode (int stage, const LayerBlendModeEx &bm) |
See RenderSystem. More... | |
void | _setTextureAddressingMode (int stage, Material::TextureLayer::TextureAddressingMode tam) |
See RenderSystem. More... | |
void | _setTextureMatrix (int stage, const Matrix4 &xform) |
See RenderSystem. More... | |
void | _setSceneBlending (SceneBlendFactor sourceFactor, SceneBlendFactor destFactor) |
See RenderSystem. More... | |
void | _setAlphaRejectSettings (CompareFunction func, unsigned char value) |
See RenderSystem. More... | |
void | _setViewport (Viewport *vp) |
See RenderSystem. More... | |
void | _beginFrame (void) |
See RenderSystem. More... | |
void | _render (RenderOperation &op) |
See RenderSystem. More... | |
void | _endFrame (void) |
See RenderSystem. More... | |
void | _setCullingMode (CullingMode mode) |
See RenderSystem. More... | |
void | _setDepthBufferParams (bool depthTest=true, bool depthWrite=true, CompareFunction depthFunction=CMPF_LESS_EQUAL) |
See RenderSystem. More... | |
void | _setDepthBufferCheckEnabled (bool enabled=true) |
See RenderSystem. More... | |
void | _setDepthBufferWriteEnabled (bool enabled=true) |
See RenderSystem. More... | |
void | _setDepthBufferFunction (CompareFunction func=CMPF_LESS_EQUAL) |
See RenderSystem. More... | |
void | _setDepthBias (ushort bias) |
See RenderSystem. More... | |
void | _setFog (FogMode mode, ColourValue colour, Real density, Real start, Real end) |
See RenderSystem. More... | |
void | _makeProjectionMatrix (Real fovy, Real aspect, Real nearPlane, Real farPlane, Matrix4 &dest) |
See RenderSystem. More... | |
void | _setRasterisationMode (SceneDetailLevel level) |
See RenderSystem. More... | |
void | setStencilCheckEnabled (bool enabled) |
See RenderSystem. More... | |
bool | hasHardwareStencil (void) |
See RenderSystem. More... | |
ushort | getStencilBufferBitDepth (void) |
See RenderSystem. More... | |
void | setStencilBufferFunction (CompareFunction func) |
See RenderSystem. More... | |
void | setStencilBufferReferenceValue (ulong refValue) |
See RenderSystem. More... | |
void | setStencilBufferMask (ulong mask) |
See RenderSystem. More... | |
void | setStencilBufferFailOperation (StencilOperation op) |
See RenderSystem. More... | |
void | setStencilBufferDepthFailOperation (StencilOperation op) |
See RenderSystem. More... | |
void | setStencilBufferPassOperation (StencilOperation op) |
See RenderSystem. More... | |
void | setStencilBufferParams (CompareFunction func=CMPF_ALWAYS_PASS, ulong refValue=0, ulong mask=0xFFFFFFFF, StencilOperation stencilFailOp=SOP_KEEP, StencilOperation depthFailOp=SOP_KEEP, StencilOperation passOp=SOP_KEEP) |
See RenderSystem. More... | |
virtual void | addFrameListener (FrameListener *newListener) |
Registers a FrameListener which will be called back every frame. More... | |
virtual void | removeFrameListener (FrameListener *oldListener) |
Removes a FrameListener from the list of listening classes. More... | |
virtual void | attachRenderTarget (RenderTarget &target) |
Don't do this anymore, just allow via Root RenderSystem* regPtr = Root::getSingleton().getRenderSystem(); if (!regPtr || regPtr != this) Register self - library user has come to me direct Root::getSingleton().setRenderSystem(this);. More... | |
virtual RenderTarget * | getRenderTarget (const String &name) |
Returns a pointer to the render target with the passed name, or NULL if that render target cannot be found. More... | |
virtual RenderTarget * | detachRenderTarget (const String &name) |
Detaches the render target with the passed name from the render system and returns a pointer to it. More... | |
void | setWaitForVerticalBlank (bool enabled) |
Defines whether or now fullscreen render windows wait for the vertical blank before flipping buffers. More... | |
bool | getWaitForVerticalBlank (void) |
Returns true if the system is synchronising frames with the monitor vertical blank. More... | |
virtual void | _setWorldMatrices (const Matrix4 *m, unsigned short count) |
Sets multiple world matrices (vertex blending). More... | |
virtual void | _setTextureUnitSettings (int texUnit, Material::TextureLayer &tl) |
Utility function for setting all the properties of a texture unit at once. More... | |
virtual void | _disableTextureUnit (int texUnit) |
Turns off a texture unit. More... | |
virtual Viewport * | _getViewport (void) |
Get the current active viewport for rendering. More... | |
virtual CullingMode | _getCullingMode (void) |
virtual void | _beginGeometryCount (void) |
The RenderSystem will keep a count of tris rendered, this resets the count. More... | |
virtual unsigned int | _getFaceCount (void) |
Reports the number of tris rendered since the last _beginGeometryCount call. More... | |
virtual unsigned int | _getVertexCount (void) |
Reports the number of vertices passed to the renderer since the last _beginGeometryCount call. More... | |
virtual bool | _isVertexBlendSupported (void) |
Returns whether or not this RenderSystem supports hardware vertex blending, ie multiple world matrices per vertex with blending weights. More... | |
virtual unsigned short | _getNumVertexBlendMatrices (void) |
Returns the number of matrices available to hardware vertex blending for this rendering system. More... | |
void | softwareVertexBlend (RenderOperation &op, Matrix4 *pMatrices) |
Performs a software vertex blend on the passed in operation. More... | |
Protected Methods | |
bool | fireFrameStarted (FrameEvent &evt) |
Internal method for raising frame started events. More... | |
bool | fireFrameEnded (FrameEvent &evt) |
Internal method for raising frame ended events. More... | |
Protected Attributes | |
std::set< FrameListener * > | mFrameListeners |
Set of registered frame listeners. More... | |
ConfigOptionMap | mOptions |
RenderTargetMap | mRenderTargets |
The render targets. More... | |
RenderTargetPriorityMap | mPrioritisedRenderTargets |
The render targets, ordered by priority. More... | |
RenderTarget * | mActiveRenderTarget |
The Active render target. More... | |
TextureManager * | mTextureManager |
Viewport * | mActiveViewport |
CullingMode | mCullingMode |
bool | mVSync |
Material::TextureLayer | mTextureUnits [OGRE_MAX_TEXTURE_LAYERS] |
unsigned int | mFaceCount |
unsigned int | mVertexCount |
Matrix4 | mWorldMatrices [256] |
Saved set of world matrices. More... | |
std::vector< Real > | mTempVertexBlendBuffer |
Temporary buffer for vertex blending in software. More... | |
std::vector< Real > | mTempNormalBlendBuffer |
Private Methods | |
void | initConfigOptions (void) |
void | initInputDevices (void) |
void | processInputDevices (void) |
void | setGLLight (int index, Light *lt) |
void | makeGLMatrix (GLfloat gl_matrix[16], const Matrix4 &m) |
GLint | getBlendMode (SceneBlendFactor ogreBlend) |
void | setLights () |
GLint | convertCompareFunction (CompareFunction func) |
GLint | convertStencilOp (StencilOperation op) |
Private Attributes | |
SDL_Rect ** | mVideoModes |
bool | mStopRendering |
Light * | mLights [MAX_LIGHTS] |
Matrix4 | mViewMatrix |
Matrix4 | mWorldMatrix |
Matrix4 | mTextureMatrix |
int | mTextureCoordIndex [OGRE_MAX_TEXTURE_COORD_SETS] |
bool | mDepthWrite |
GLint | mStencilFunc |
GLint | mStencilRef |
GLuint | mStencilMask |
GLint | mStencilFail |
GLint | mStencilZFail |
GLint | mStencilPass |
|
|
|
|
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
The RenderSystem will keep a count of tris rendered, this resets the count.
|
|
Turns off a texture unit.
|
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
|
|
Reports the number of tris rendered since the last _beginGeometryCount call.
|
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
Returns the number of matrices available to hardware vertex blending for this rendering system.
|
|
Reports the number of vertices passed to the renderer since the last _beginGeometryCount call.
|
|
Get the current active viewport for rendering.
|
|
Returns whether or not this RenderSystem supports hardware vertex blending, ie multiple world matrices per vertex with blending weights.
|
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Reimplemented from Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
Utility function for setting all the properties of a texture unit at once. This method is also worth using over the individual texture unit settings because it only sets those settings which are different from the current settings for this unit, thus minimising render state changes. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
Sets multiple world matrices (vertex blending).
|
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
Registers a FrameListener which will be called back every frame.
|
|
Don't do this anymore, just allow via Root RenderSystem* regPtr = Root::getSingleton().getRenderSystem(); if (!regPtr || regPtr != this) Register self - library user has come to me direct Root::getSingleton().setRenderSystem(this);.
|
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
|
|
|
|
Creates and registers a render texture object.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
|
|
Detaches the render target with the passed name from the render system and returns a pointer to it.
|
|
Internal method for raising frame ended events.
|
|
Internal method for raising frame started events.
|
|
|
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
Returns a pointer to the render target with the passed name, or NULL if that render target cannot be found.
|
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
Returns true if the system is synchronising frames with the monitor vertical blank.
|
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
|
|
See RenderSystem.
Reimplemented from Ogre::RenderSystem. |
|
|
|
|
|
|
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
Removes a FrameListener from the list of listening classes.
|
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
|
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
|
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Reimplemented from Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
Defines whether or now fullscreen render windows wait for the vertical blank before flipping buffers.
|
|
See RenderSystem.
Reimplemented from Ogre::RenderSystem. |
|
Performs a software vertex blend on the passed in operation.
|
|
See RenderSystem.
Reimplemented from Ogre::RenderSystem. |
|
See RenderSystem.
Implements Ogre::RenderSystem. |
|
The Active render target.
|
|
|
|
|
|
|
|
|
|
Set of registered frame listeners.
|
|
|
|
|
|
The render targets, ordered by priority.
|
|
The render targets.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Temporary buffer for vertex blending in software.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Saved set of world matrices.
|
|
|
Copyright © 2002 by The OGRE Team