#include <Render_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 Fill * | CreateSimpleFill (int flags=Fill::F_Solid) |
| 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 Fill *fill, Render::Buffer *vertices, Render::Buffer *indices, const Matrix4f &matrix, int offset, int count, PrimitiveType prim=Prim_Triangles) |
| RenderDevice (const RendererParams &p) | |
| virtual void | RenderWithAlpha (const Fill *fill, Render::Buffer *vertices, Render::Buffer *indices, const Matrix4f &matrix, int offset, int count, PrimitiveType prim=Prim_Triangles) |
| virtual void | SetDepthMode (bool enable, bool write, CompareFunc func=Compare_Less) |
| virtual bool | SetFullscreen (DisplayMode fullscreen) |
| virtual void | SetLighting (const LightingParams *lt) |
| virtual void | SetRealViewport (const Viewport &vp) |
| virtual void | SetRenderTarget (Render::Texture *color, Render::Texture *depth=NULL, Render::Texture *stencil=NULL) |
| void | SetTexture (Render::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 Render_GL_Device.h.
Definition at line 265 of file Render_GL_Device.cpp.
| void OVR::Render::GL::RenderDevice::BeginRendering | ( | ) | [virtual] |
Reimplemented from OVR::Render::RenderDevice.
Definition at line 293 of file Render_GL_Device.cpp.
| void OVR::Render::GL::RenderDevice::Clear | ( | float | r = 0, |
| float | g = 0, |
||
| float | b = 0, |
||
| float | a = 1, |
||
| float | depth = 1 |
||
| ) | [virtual] |
Implements OVR::Render::RenderDevice.
Definition at line 339 of file Render_GL_Device.cpp.
| Buffer * OVR::Render::GL::RenderDevice::CreateBuffer | ( | ) | [virtual] |
Reimplemented from OVR::Render::RenderDevice.
Definition at line 397 of file Render_GL_Device.cpp.
| virtual ShaderSet* OVR::Render::GL::RenderDevice::CreateShaderSet | ( | ) | [inline, virtual] |
Reimplemented from OVR::Render::RenderDevice.
Definition at line 218 of file Render_GL_Device.h.
| Fill * OVR::Render::GL::RenderDevice::CreateSimpleFill | ( | int | flags = Fill::F_Solid | ) | [virtual] |
Implements OVR::Render::RenderDevice.
Definition at line 402 of file Render_GL_Device.cpp.
| Texture * OVR::Render::GL::RenderDevice::CreateTexture | ( | int | format, |
| int | width, | ||
| int | height, | ||
| const void * | data, | ||
| int | mipcount = 1 |
||
| ) | [virtual] |
Reimplemented from OVR::Render::RenderDevice.
Definition at line 761 of file Render_GL_Device.cpp.
| RBuffer * OVR::Render::GL::RenderDevice::GetDepthBuffer | ( | int | w, |
| int | h, | ||
| int | ms | ||
| ) |
Definition at line 346 of file Render_GL_Device.cpp.
| Shader * OVR::Render::GL::RenderDevice::LoadBuiltinShader | ( | ShaderStage | stage, |
| int | shader | ||
| ) | [virtual] |
Implements OVR::Render::RenderDevice.
Definition at line 281 of file Render_GL_Device.cpp.
| virtual void OVR::Render::GL::RenderDevice::Rect | ( | float | left, |
| float | top, | ||
| float | right, | ||
| float | bottom | ||
| ) | [inline, virtual] |
Implements OVR::Render::RenderDevice.
Definition at line 197 of file Render_GL_Device.h.
| void OVR::Render::GL::RenderDevice::Render | ( | const Matrix4f & | matrix, |
| Model * | model | ||
| ) | [virtual] |
Implements OVR::Render::RenderDevice.
Definition at line 409 of file Render_GL_Device.cpp.
| void OVR::Render::GL::RenderDevice::Render | ( | const Fill * | fill, |
| Render::Buffer * | vertices, | ||
| Render::Buffer * | indices, | ||
| const Matrix4f & | matrix, | ||
| int | offset, | ||
| int | count, | ||
| PrimitiveType | prim = Prim_Triangles |
||
| ) | [virtual] |
Implements OVR::Render::RenderDevice.
Definition at line 430 of file Render_GL_Device.cpp.
| void OVR::Render::GL::RenderDevice::RenderWithAlpha | ( | const Fill * | fill, |
| Render::Buffer * | vertices, | ||
| Render::Buffer * | indices, | ||
| const Matrix4f & | matrix, | ||
| int | offset, | ||
| int | count, | ||
| PrimitiveType | prim = Prim_Triangles |
||
| ) | [virtual] |
Implements OVR::Render::RenderDevice.
Definition at line 489 of file Render_GL_Device.cpp.
| void OVR::Render::GL::RenderDevice::SetDepthMode | ( | bool | enable, |
| bool | write, | ||
| CompareFunc | func = Compare_Less |
||
| ) | [virtual] |
Implements OVR::Render::RenderDevice.
Definition at line 308 of file Render_GL_Device.cpp.
| bool OVR::Render::GL::RenderDevice::SetFullscreen | ( | DisplayMode | fullscreen | ) | [virtual] |
Reimplemented from OVR::Render::RenderDevice.
Reimplemented in OVR::Render::GL::OSX::RenderDevice.
Definition at line 834 of file Render_GL_Device.cpp.
| void OVR::Render::GL::RenderDevice::SetLighting | ( | const LightingParams * | lt | ) | [virtual] |
Reimplemented from OVR::Render::RenderDevice.
Definition at line 497 of file Render_GL_Device.cpp.
| void OVR::Render::GL::RenderDevice::SetRealViewport | ( | const Viewport & | vp | ) | [virtual] |
Reimplemented from OVR::Render::RenderDevice.
Definition at line 326 of file Render_GL_Device.cpp.
| void OVR::Render::GL::RenderDevice::SetRenderTarget | ( | Render::Texture * | color, |
| Render::Texture * | depth = NULL, |
||
| Render::Texture * | stencil = NULL |
||
| ) | [virtual] |
Reimplemented from OVR::Render::RenderDevice.
Definition at line 358 of file Render_GL_Device.cpp.
| void OVR::Render::GL::RenderDevice::SetTexture | ( | Render::ShaderStage | , |
| int | slot, | ||
| const Texture * | t | ||
| ) |
Definition at line 390 of file Render_GL_Device.cpp.
| void OVR::Render::GL::RenderDevice::SetWorldUniforms | ( | const Matrix4f & | proj | ) | [virtual] |
Implements OVR::Render::RenderDevice.
Definition at line 385 of file Render_GL_Device.cpp.
Definition at line 183 of file Render_GL_Device.h.
GLuint OVR::Render::GL::RenderDevice::CurrentFbo [private] |
Definition at line 185 of file Render_GL_Device.h.
Definition at line 179 of file Render_GL_Device.h.
Array<Ptr<RBuffer> > OVR::Render::GL::RenderDevice::DepthBuffers [private] |
Definition at line 184 of file Render_GL_Device.h.
Definition at line 177 of file Render_GL_Device.h.
const LightingParams* OVR::Render::GL::RenderDevice::Lighting [private] |
Definition at line 187 of file Render_GL_Device.h.
Matrix4f OVR::Render::GL::RenderDevice::Proj [private] |
Reimplemented from OVR::Render::RenderDevice.
Definition at line 181 of file Render_GL_Device.h.
Definition at line 176 of file Render_GL_Device.h.