Public Member Functions | Static Public Member Functions | Public Attributes
OVR::Render::Model Class Reference

#include <Render_Device.h>

Inheritance diagram for OVR::Render::Model:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void AddLine (UInt16 a, UInt16 b)
void AddLine (const Vertex &a, const Vertex &b)
void AddSolidColorBox (float x1, float y1, float z1, float x2, float y2, float z2, Color c)
void AddTriangle (UInt16 a, UInt16 b, UInt16 c)
UInt16 AddVertex (const Vertex &v)
UInt16 AddVertex (const Vector3f &v, const Color &c, float u_=0, float v_=0)
UInt16 AddVertex (float x, float y, float z, const Color &c, float u, float v)
UInt16 AddVertex (float x, float y, float z, const Color &c, float u, float v, float nx, float ny, float nz)
UInt16 AddVertex (float x, float y, float z, const Color &c, float u1, float v1, float u2, float v2, float nx, float ny, float nz)
void ClearRenderer ()
UInt16 GetNextVertexIndex () const
PrimitiveType GetPrimType () const
virtual NodeType GetType () const
bool IsVisible () const
 Model (PrimitiveType t=Prim_Triangles)
virtual void Render (const Matrix4f &ltw, RenderDevice *ren)
void SetVisible (bool visible)
 ~Model ()

Static Public Member Functions

static ModelCreateAxisFaceColorBox (float x1, float x2, Color xcolor, float y1, float y2, Color ycolor, float z1, float z2, Color zcolor)
static ModelCreateBox (Color c, Vector3f origin, Vector3f size)
static ModelCreateCone (Color c, Vector3f origin, float height, float radius, int sides=20)
static ModelCreateCylinder (Color c, Vector3f origin, float height, float radius, int sides=20)
static ModelCreateGrid (Vector3f origin, Vector3f stepx, Vector3f stepy, int halfx, int halfy, int nmajor=5, Color minor=Color(64, 64, 64, 192), Color major=Color(128, 128, 128, 192))
static ModelCreateSphere (Color c, Vector3f origin, float radius, int sides=20)

Public Attributes

Ptr< class FillFill
Ptr< BufferIndexBuffer
Array< UInt16Indices
bool IsCollisionModel
PrimitiveType Type
Ptr< BufferVertexBuffer
Array< VertexVertices
bool Visible

Detailed Description

Definition at line 434 of file Render_Device.h.


Constructor & Destructor Documentation

Definition at line 449 of file Render_Device.h.

Definition at line 450 of file Render_Device.h.


Member Function Documentation

void OVR::Render::Model::AddLine ( UInt16  a,
UInt16  b 
) [inline]

Definition at line 489 of file Render_Device.h.

void OVR::Render::Model::AddLine ( const Vertex a,
const Vertex b 
) [inline]

Definition at line 507 of file Render_Device.h.

void OVR::Render::Model::AddSolidColorBox ( float  x1,
float  y1,
float  z1,
float  x2,
float  y2,
float  z2,
Color  c 
)

Definition at line 176 of file Render_Device.cpp.

void OVR::Render::Model::AddTriangle ( UInt16  a,
UInt16  b,
UInt16  c 
) [inline]

Definition at line 512 of file Render_Device.h.

UInt16 OVR::Render::Model::AddVertex ( const Vertex v) [inline]

Definition at line 473 of file Render_Device.h.

UInt16 OVR::Render::Model::AddVertex ( const Vector3f v,
const Color c,
float  u_ = 0,
float  v_ = 0 
) [inline]

Definition at line 480 of file Render_Device.h.

UInt16 OVR::Render::Model::AddVertex ( float  x,
float  y,
float  z,
const Color c,
float  u,
float  v 
) [inline]

Definition at line 484 of file Render_Device.h.

UInt16 OVR::Render::Model::AddVertex ( float  x,
float  y,
float  z,
const Color c,
float  u,
float  v,
float  nx,
float  ny,
float  nz 
) [inline]

Definition at line 495 of file Render_Device.h.

UInt16 OVR::Render::Model::AddVertex ( float  x,
float  y,
float  z,
const Color c,
float  u1,
float  v1,
float  u2,
float  v2,
float  nx,
float  ny,
float  nz 
) [inline]

Definition at line 501 of file Render_Device.h.

void OVR::Render::Model::ClearRenderer ( ) [inline, virtual]

Reimplemented from OVR::Render::Node.

Definition at line 461 of file Render_Device.h.

Model * OVR::Render::Model::CreateAxisFaceColorBox ( float  x1,
float  x2,
Color  xcolor,
float  y1,
float  y2,
Color  ycolor,
float  z1,
float  z2,
Color  zcolor 
) [static]

Definition at line 98 of file Render_Device.cpp.

Model * OVR::Render::Model::CreateBox ( Color  c,
Vector3f  origin,
Vector3f  size 
) [static]

Definition at line 260 of file Render_Device.cpp.

Model * OVR::Render::Model::CreateCone ( Color  c,
Vector3f  origin,
float  height,
float  radius,
int  sides = 20 
) [static]

Definition at line 345 of file Render_Device.cpp.

Model * OVR::Render::Model::CreateCylinder ( Color  c,
Vector3f  origin,
float  height,
float  radius,
int  sides = 20 
) [static]

Definition at line 312 of file Render_Device.cpp.

Model * OVR::Render::Model::CreateGrid ( Vector3f  origin,
Vector3f  stepx,
Vector3f  stepy,
int  halfx,
int  halfy,
int  nmajor = 5,
Color  minor = Color(64,64,64,192),
Color  major = Color(128,128,128,192) 
) [static]

Definition at line 433 of file Render_Device.cpp.

Model * OVR::Render::Model::CreateSphere ( Color  c,
Vector3f  origin,
float  radius,
int  sides = 20 
) [static]

Definition at line 380 of file Render_Device.cpp.

Definition at line 468 of file Render_Device.h.

Definition at line 456 of file Render_Device.h.

virtual NodeType OVR::Render::Model::GetType ( ) const [inline, virtual]

Reimplemented from OVR::Render::Node.

Definition at line 452 of file Render_Device.h.

bool OVR::Render::Model::IsVisible ( ) const [inline]

Definition at line 459 of file Render_Device.h.

void OVR::Render::Model::Render ( const Matrix4f ltw,
RenderDevice ren 
) [virtual]

Reimplemented from OVR::Render::Node.

Definition at line 31 of file Render_Device.cpp.

void OVR::Render::Model::SetVisible ( bool  visible) [inline]

Definition at line 458 of file Render_Device.h.


Member Data Documentation

Definition at line 440 of file Render_Device.h.

Definition at line 447 of file Render_Device.h.

Definition at line 438 of file Render_Device.h.

Definition at line 442 of file Render_Device.h.

Definition at line 439 of file Render_Device.h.

Definition at line 446 of file Render_Device.h.

Definition at line 437 of file Render_Device.h.

Definition at line 441 of file Render_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:49