Public Member Functions | Private Attributes
OVR::Render::GL::RenderDevice Class Reference

#include <Render_GL_Device.h>

Inheritance diagram for OVR::Render::GL::RenderDevice:
Inheritance graph
[legend]

List of all members.

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 BufferCreateBuffer ()
virtual ShaderSetCreateShaderSet ()
virtual FillCreateSimpleFill (int flags=Fill::F_Solid)
virtual TextureCreateTexture (int format, int width, int height, const void *data, int mipcount=1)
RBufferGetDepthBuffer (int w, int h, int ms)
virtual ShaderLoadBuiltinShader (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< TextureCurRenderTarget
GLuint CurrentFbo
Ptr< ShaderFillDefaultFill
Array< Ptr< RBuffer > > DepthBuffers
Ptr< ShaderFragShaders [FShader_Count]
const LightingParamsLighting
Matrix4f Proj
Ptr< ShaderVertexShaders [VShader_Count]

Detailed Description

Definition at line 174 of file Render_GL_Device.h.


Constructor & Destructor Documentation

Definition at line 265 of file Render_GL_Device.cpp.


Member Function Documentation

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.

Reimplemented from OVR::Render::RenderDevice.

Definition at line 397 of file Render_GL_Device.cpp.

Reimplemented from OVR::Render::RenderDevice.

Definition at line 218 of file Render_GL_Device.h.

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.

Reimplemented from OVR::Render::RenderDevice.

Reimplemented in OVR::Render::GL::OSX::RenderDevice.

Definition at line 834 of file Render_GL_Device.cpp.

Reimplemented from OVR::Render::RenderDevice.

Definition at line 497 of file Render_GL_Device.cpp.

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.

Definition at line 390 of file Render_GL_Device.cpp.

Implements OVR::Render::RenderDevice.

Definition at line 385 of file Render_GL_Device.cpp.


Member Data Documentation

Definition at line 183 of file Render_GL_Device.h.

Definition at line 185 of file Render_GL_Device.h.

Definition at line 179 of file Render_GL_Device.h.

Definition at line 184 of file Render_GL_Device.h.

Definition at line 177 of file Render_GL_Device.h.

Definition at line 187 of file Render_GL_Device.h.

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.


The documentation for this class was generated from the following files:


oculus_sdk
Author(s):
autogenerated on Fri Aug 28 2015 11:53:12