Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
OVR::RenderTiny::RenderDevice Class Reference

#include <RenderTiny_Device.h>

Inheritance diagram for OVR::RenderTiny::RenderDevice:
Inheritance graph
[legend]

List of all members.

Public Types

enum  CompareFunc { Compare_Always = 0, Compare_Less = 1, Compare_Greater = 2, Compare_Count }
enum  PostProcessShader { PostProcessShader_Distortion = 0, PostProcessShader_DistortionAndChromAb = 1, PostProcessShader_Count }

Public Member Functions

void ApplyStereoParams (const StereoEyeParams &params)
virtual void BeginRendering ()
virtual void BeginScene (PostProcessType pp=PostProcess_None)
virtual void Clear (float r=0, float g=0, float b=0, float a=1, float depth=1)=0
virtual BufferCreateBuffer ()
virtual ShaderSetCreateShaderSet ()
virtual ShaderFillCreateSimpleFill ()=0
virtual TextureCreateTexture (int format, int width, int height, const void *data, int mipcount=1)
ShaderFillCreateTextureFill (Texture *tex)
virtual void FinishScene ()
virtual void ForceFlushGPU ()
const RendererParamsGetParams () const
PostProcessShader GetPostProcessShader ()
virtual Matrix4f GetProjection () const
virtual void Init ()
virtual bool IsFullscreen () const
virtual ShaderLoadBuiltinShader (ShaderStage stage, int shader)=0
virtual void Present ()=0
virtual void Render (const Matrix4f &matrix, Model *model)=0
virtual void Render (const ShaderFill *fill, Buffer *vertices, Buffer *indices, const Matrix4f &matrix, int offset, int count, PrimitiveType prim=Prim_Triangles)=0
 RenderDevice ()
virtual void SetCommonUniformBuffer (int i, Buffer *buffer)
virtual void SetDepthMode (bool enable, bool write, CompareFunc func=Compare_Less)=0
void SetDistortionConfig (const DistortionConfig &config, StereoEye eye=StereoEye_Left)
virtual bool SetFullscreen (DisplayMode fullscreen)
virtual void SetLighting (const LightingParams *light)
virtual bool SetParams (const RendererParams &)
void SetPostProcessShader (PostProcessShader newShader)
virtual void SetProjection (const Matrix4f &proj)
virtual void SetRealViewport (const Viewport &vp)=0
virtual void SetRenderTarget (Texture *color, Texture *depth=NULL, Texture *stencil=NULL)
void SetSceneRenderScale (float ss)
virtual void SetViewport (const Viewport &vp)
void SetViewport (int x, int y, int w, int h)
virtual void SetWorldUniforms (const Matrix4f &proj)=0
virtual void Shutdown ()
virtual ~RenderDevice ()

Protected Member Functions

void FinishScene1 ()
virtual bool initPostProcessSupport (PostProcessType pptype)

Protected Attributes

PostProcessType CurPostProcess
DistortionConfig Distortion
Ptr< BufferLightingBuffer
RendererParams Params
Ptr< BufferpFullScreenVertexBuffer
Ptr< ShaderSetpPostProcessShader
Matrix4f Proj
Ptr< TexturepSceneColorTex
Ptr< BufferpTextVertexBuffer
int SceneColorTexH
int SceneColorTexW
float SceneRenderScale
Viewport VP
int WindowHeight
int WindowWidth

Private Attributes

PostProcessShader PostProcessShaderActive
PostProcessShader PostProcessShaderRequested

Detailed Description

Definition at line 560 of file RenderTiny_Device.h.


Member Enumeration Documentation

Enumerator:
Compare_Always 
Compare_Less 
Compare_Greater 
Compare_Count 

Definition at line 586 of file RenderTiny_Device.h.

Enumerator:
PostProcessShader_Distortion 
PostProcessShader_DistortionAndChromAb 
PostProcessShader_Count 

Definition at line 690 of file RenderTiny_Device.h.


Constructor & Destructor Documentation

Definition at line 185 of file RenderTiny_Device.cpp.

OVR::Render::D3D11::RenderDevice::~RenderDevice ( ) [inline, virtual]

Reimplemented in OVR::RenderTiny::D3D10::RenderDevice.

Definition at line 594 of file RenderTiny_Device.h.


Member Function Documentation

Definition at line 610 of file RenderTiny_Device.h.

virtual void OVR::RenderTiny::RenderDevice::BeginRendering ( ) [inline, virtual]

Definition at line 318 of file RenderTiny_Device.cpp.

virtual void OVR::RenderTiny::RenderDevice::Clear ( float  r = 0,
float  g = 0,
float  b = 0,
float  a = 1,
float  depth = 1 
) [pure virtual]
virtual Buffer* OVR::RenderTiny::RenderDevice::CreateBuffer ( ) [inline, virtual]

Reimplemented in OVR::RenderTiny::GL::RenderDevice.

Definition at line 647 of file RenderTiny_Device.h.

virtual Texture* OVR::RenderTiny::RenderDevice::CreateTexture ( int  format,
int  width,
int  height,
const void *  data,
int  mipcount = 1 
) [inline, virtual]

Definition at line 195 of file RenderTiny_Device.cpp.

Definition at line 344 of file RenderTiny_Device.cpp.

Definition at line 358 of file RenderTiny_Device.cpp.

void OVR::Render::D3D11::RenderDevice::ForceFlushGPU ( ) [inline, virtual]

Reimplemented in OVR::RenderTiny::D3D10::RenderDevice.

Definition at line 639 of file RenderTiny_Device.h.

Definition at line 605 of file RenderTiny_Device.h.

Definition at line 697 of file RenderTiny_Device.h.

virtual Matrix4f OVR::RenderTiny::RenderDevice::GetProjection ( ) const [inline, virtual]

Definition at line 674 of file RenderTiny_Device.h.

virtual void OVR::RenderTiny::RenderDevice::Init ( ) [inline, virtual]

Definition at line 601 of file RenderTiny_Device.h.

Definition at line 242 of file RenderTiny_Device.cpp.

virtual bool OVR::RenderTiny::RenderDevice::IsFullscreen ( ) const [inline, virtual]

Definition at line 636 of file RenderTiny_Device.h.

virtual Shader* OVR::RenderTiny::RenderDevice::LoadBuiltinShader ( ShaderStage  stage,
int  shader 
) [pure virtual]
virtual void OVR::RenderTiny::RenderDevice::Present ( ) [pure virtual]
virtual void OVR::RenderTiny::RenderDevice::Render ( const Matrix4f matrix,
Model model 
) [pure virtual]
virtual void OVR::RenderTiny::RenderDevice::Render ( const ShaderFill fill,
Buffer vertices,
Buffer indices,
const Matrix4f matrix,
int  offset,
int  count,
PrimitiveType  prim = Prim_Triangles 
) [pure virtual]
virtual void OVR::RenderTiny::RenderDevice::SetCommonUniformBuffer ( int  i,
Buffer buffer 
) [inline, virtual]

Reimplemented in OVR::RenderTiny::D3D10::RenderDevice.

Definition at line 672 of file RenderTiny_Device.h.

virtual void OVR::RenderTiny::RenderDevice::SetDepthMode ( bool  enable,
bool  write,
CompareFunc  func = Compare_Less 
) [pure virtual]
void OVR::RenderTiny::RenderDevice::SetDistortionConfig ( const DistortionConfig config,
StereoEye  eye = StereoEye_Left 
) [inline]

Definition at line 624 of file RenderTiny_Device.h.

bool OVR::Render::D3D11::RenderDevice::SetFullscreen ( DisplayMode  fullscreen) [inline, virtual]

Reimplemented in OVR::RenderTiny::D3D10::RenderDevice.

Definition at line 687 of file RenderTiny_Device.h.

Reimplemented in OVR::RenderTiny::GL::RenderDevice.

Definition at line 205 of file RenderTiny_Device.cpp.

virtual bool OVR::RenderTiny::RenderDevice::SetParams ( const RendererParams ) [inline, virtual]

Reimplemented in OVR::RenderTiny::D3D10::RenderDevice.

Definition at line 603 of file RenderTiny_Device.h.

Definition at line 702 of file RenderTiny_Device.h.

void OVR::RenderTiny::RenderDevice::SetProjection ( const Matrix4f proj) [virtual]

Definition at line 312 of file RenderTiny_Device.cpp.

virtual void OVR::RenderTiny::RenderDevice::SetRealViewport ( const Viewport vp) [pure virtual]
virtual void OVR::RenderTiny::RenderDevice::SetRenderTarget ( Texture color,
Texture depth = NULL,
Texture stencil = NULL 
) [inline, virtual]

Definition at line 216 of file RenderTiny_Device.cpp.

void OVR::RenderTiny::RenderDevice::SetViewport ( const Viewport vp) [virtual]

Definition at line 222 of file RenderTiny_Device.cpp.

void OVR::RenderTiny::RenderDevice::SetViewport ( int  x,
int  y,
int  w,
int  h 
) [inline]

Definition at line 619 of file RenderTiny_Device.h.

virtual void OVR::RenderTiny::RenderDevice::SetWorldUniforms ( const Matrix4f proj) [pure virtual]
virtual void OVR::RenderTiny::RenderDevice::Shutdown ( ) [inline, virtual]

Definition at line 602 of file RenderTiny_Device.h.


Member Data Documentation

Definition at line 571 of file RenderTiny_Device.h.

Definition at line 578 of file RenderTiny_Device.h.

Definition at line 581 of file RenderTiny_Device.h.

Definition at line 564 of file RenderTiny_Device.h.

Definition at line 576 of file RenderTiny_Device.h.

Definition at line 713 of file RenderTiny_Device.h.

Definition at line 712 of file RenderTiny_Device.h.

Definition at line 575 of file RenderTiny_Device.h.

Reimplemented in OVR::RenderTiny::GL::RenderDevice.

Definition at line 567 of file RenderTiny_Device.h.

Definition at line 572 of file RenderTiny_Device.h.

Definition at line 568 of file RenderTiny_Device.h.

Definition at line 574 of file RenderTiny_Device.h.

Definition at line 573 of file RenderTiny_Device.h.

Definition at line 577 of file RenderTiny_Device.h.

Definition at line 565 of file RenderTiny_Device.h.

Definition at line 563 of file RenderTiny_Device.h.

Definition at line 563 of file RenderTiny_Device.h.


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


oculus_sdk
Author(s): Tully Foote
autogenerated on Thu Jun 6 2019 20:13:50