#include <RenderTiny_GL_Device.h>

Public Member Functions | |
| virtual void | BeginRendering () |
| virtual void | Clear (float r=0, float g=0, float b=0, float a=1, float depth=1) |
| virtual Buffer * | CreateBuffer () |
| virtual ShaderSet * | CreateShaderSet () |
| virtual ShaderFill * | CreateSimpleFill () |
| virtual Texture * | CreateTexture (int format, int width, int height, const void *data, int mipcount=1) |
| RBuffer * | GetDepthBuffer (int w, int h, int ms) |
| virtual Shader * | LoadBuiltinShader (ShaderStage stage, int shader) |
| virtual void | Rect (float left, float top, float right, float bottom) |
| virtual void | Render (const Matrix4f &matrix, Model *model) |
| virtual void | Render (const ShaderFill *fill, RenderTiny::Buffer *vertices, RenderTiny::Buffer *indices, const Matrix4f &matrix, int offset, int count, PrimitiveType prim=Prim_Triangles) |
| RenderDevice (const RendererParams &p) | |
| virtual void | SetDepthMode (bool enable, bool write, CompareFunc func=Compare_Less) |
| virtual void | SetLighting (const LightingParams *lt) |
| virtual void | SetRealViewport (const Viewport &vp) |
| virtual void | SetRenderTarget (RenderTiny::Texture *color, RenderTiny::Texture *depth=NULL, RenderTiny::Texture *stencil=NULL) |
| void | SetTexture (RenderTiny::ShaderStage, int slot, const Texture *t) |
| virtual void | SetWorldUniforms (const Matrix4f &proj) |
Private Attributes | |
| Ptr< Texture > | CurRenderTarget |
| GLuint | CurrentFbo |
| Ptr< ShaderFill > | DefaultFill |
| Array< Ptr< RBuffer > > | DepthBuffers |
| Ptr< Shader > | FragShaders [FShader_Count] |
| const LightingParams * | Lighting |
| Matrix4f | Proj |
| Ptr< Shader > | VertexShaders [VShader_Count] |
Definition at line 174 of file RenderTiny_GL_Device.h.
Definition at line 234 of file RenderTiny_GL_Device.cpp.
| void OVR::RenderTiny::GL::RenderDevice::BeginRendering | ( | ) | [virtual] |
Reimplemented from OVR::RenderTiny::RenderDevice.
Definition at line 1628 of file Render_D3D1X_Device.cpp.
| void OVR::RenderTiny::GL::RenderDevice::Clear | ( | float | r = 0, |
| float | g = 0, |
||
| float | b = 0, |
||
| float | a = 1, |
||
| float | depth = 1 |
||
| ) | [virtual] |
Implements OVR::RenderTiny::RenderDevice.
Definition at line 308 of file RenderTiny_GL_Device.cpp.
| Buffer * OVR::RenderTiny::GL::RenderDevice::CreateBuffer | ( | ) | [virtual] |
Reimplemented from OVR::RenderTiny::RenderDevice.
Definition at line 853 of file Render_D3D1X_Device.cpp.
| virtual ShaderSet* OVR::RenderTiny::GL::RenderDevice::CreateShaderSet | ( | ) | [inline, virtual] |
Reimplemented from OVR::RenderTiny::RenderDevice.
Definition at line 217 of file RenderTiny_GL_Device.h.
| virtual ShaderFill* OVR::RenderTiny::GL::RenderDevice::CreateSimpleFill | ( | ) | [inline, virtual] |
Implements OVR::RenderTiny::RenderDevice.
Definition at line 219 of file RenderTiny_GL_Device.h.
| Texture * OVR::RenderTiny::GL::RenderDevice::CreateTexture | ( | int | format, |
| int | width, | ||
| int | height, | ||
| const void * | data, | ||
| int | mipcount = 1 |
||
| ) | [virtual] |
Reimplemented from OVR::RenderTiny::RenderDevice.
Definition at line 713 of file RenderTiny_GL_Device.cpp.
| RBuffer * OVR::RenderTiny::GL::RenderDevice::GetDepthBuffer | ( | int | w, |
| int | h, | ||
| int | ms | ||
| ) |
Definition at line 765 of file Render_D3D1X_Device.cpp.
| Shader * OVR::RenderTiny::GL::RenderDevice::LoadBuiltinShader | ( | ShaderStage | stage, |
| int | shader | ||
| ) | [virtual] |
Implements OVR::RenderTiny::RenderDevice.
Definition at line 1146 of file Render_D3D1X_Device.cpp.
| virtual void OVR::RenderTiny::GL::RenderDevice::Rect | ( | float | left, |
| float | top, | ||
| float | right, | ||
| float | bottom | ||
| ) | [inline, virtual] |
Definition at line 198 of file RenderTiny_GL_Device.h.
| void OVR::RenderTiny::GL::RenderDevice::Render | ( | const Matrix4f & | matrix, |
| Model * | model | ||
| ) | [virtual] |
Implements OVR::RenderTiny::RenderDevice.
Definition at line 1676 of file Render_D3D1X_Device.cpp.
| void OVR::RenderTiny::GL::RenderDevice::Render | ( | const ShaderFill * | fill, |
| RenderTiny::Buffer * | vertices, | ||
| RenderTiny::Buffer * | indices, | ||
| const Matrix4f & | matrix, | ||
| int | offset, | ||
| int | count, | ||
| PrimitiveType | prim = Prim_Triangles |
||
| ) | [virtual] |
Implements OVR::RenderTiny::RenderDevice.
Definition at line 392 of file RenderTiny_GL_Device.cpp.
| void OVR::RenderTiny::GL::RenderDevice::SetDepthMode | ( | bool | enable, |
| bool | write, | ||
| CompareFunc | func = Compare_Less |
||
| ) | [virtual] |
Implements OVR::RenderTiny::RenderDevice.
Definition at line 277 of file RenderTiny_GL_Device.cpp.
| void OVR::RenderTiny::GL::RenderDevice::SetLighting | ( | const LightingParams * | lt | ) | [virtual] |
Reimplemented from OVR::RenderTiny::RenderDevice.
Definition at line 450 of file RenderTiny_GL_Device.cpp.
| void OVR::RenderTiny::GL::RenderDevice::SetRealViewport | ( | const Viewport & | vp | ) | [virtual] |
Implements OVR::RenderTiny::RenderDevice.
Definition at line 295 of file RenderTiny_GL_Device.cpp.
| void OVR::RenderTiny::GL::RenderDevice::SetRenderTarget | ( | RenderTiny::Texture * | color, |
| RenderTiny::Texture * | depth = NULL, |
||
| RenderTiny::Texture * | stencil = NULL |
||
| ) | [virtual] |
Reimplemented from OVR::RenderTiny::RenderDevice.
Definition at line 327 of file RenderTiny_GL_Device.cpp.
| void OVR::RenderTiny::GL::RenderDevice::SetTexture | ( | RenderTiny::ShaderStage | , |
| int | slot, | ||
| const Texture * | t | ||
| ) |
Definition at line 359 of file RenderTiny_GL_Device.cpp.
| void OVR::RenderTiny::GL::RenderDevice::SetWorldUniforms | ( | const Matrix4f & | proj | ) | [virtual] |
Implements OVR::RenderTiny::RenderDevice.
Definition at line 1669 of file Render_D3D1X_Device.cpp.
Definition at line 183 of file RenderTiny_GL_Device.h.
GLuint OVR::RenderTiny::GL::RenderDevice::CurrentFbo [private] |
Definition at line 185 of file RenderTiny_GL_Device.h.
Definition at line 179 of file RenderTiny_GL_Device.h.
Array<Ptr<RBuffer> > OVR::RenderTiny::GL::RenderDevice::DepthBuffers [private] |
Definition at line 184 of file RenderTiny_GL_Device.h.
Definition at line 177 of file RenderTiny_GL_Device.h.
const LightingParams* OVR::RenderTiny::GL::RenderDevice::Lighting [private] |
Definition at line 187 of file RenderTiny_GL_Device.h.
Reimplemented from OVR::RenderTiny::RenderDevice.
Definition at line 181 of file RenderTiny_GL_Device.h.
Definition at line 176 of file RenderTiny_GL_Device.h.