All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OpenSubdiv::OPENSUBDIV_VERSION::Osd Namespace Reference

Classes

class  CLComputeContext
 OpenCL Refine Context. More...
 
class  CLComputeController
 Compute controller for launching OpenCL Compute subdivision kernels. More...
 
class  CLVertexBuffer
 Concrete vertex buffer class for OpenCL subvision. More...
 
class  ComputeController
 
class  CpuComputeContext
 CPU Compute Context. More...
 
class  CpuComputeController
 Compute controller for launching CPU subdivision kernels. More...
 
class  CpuD3D11VertexBuffer
 Concrete vertex buffer class for Cpu subvision and DirectX drawing. More...
 
class  CpuEvalLimitContext
 
class  CpuEvalLimitController
 CPU controler for limit surface evaluation. More...
 
class  CpuGLVertexBuffer
 Concrete vertex buffer class for cpu subvision and OpenGL drawing. More...
 
class  CpuSmoothNormalContext
 
class  CpuSmoothNormalController
 
class  CpuVertexBuffer
 Concrete vertex buffer class for cpu subvision. More...
 
class  CudaComputeContext
 CUDA Refine Context. More...
 
class  CudaComputeController
 Compute controller for launching CUDA subdivision kernels. More...
 
class  CudaVertexBuffer
 Concrete vertex buffer class for Cuda subvision. More...
 
class  D3D11ComputeContext
 D3D Refine Context. More...
 
class  D3D11ComputeController
 Compute controller for launching D3D11 Compute subdivision kernels. More...
 
class  D3D11DrawContext
 D3D11 specialized DrawContext class. More...
 
struct  D3D11DrawConfig
 
struct  D3D11DrawSourceConfig
 
class  D3D11DrawRegistryBase
 
class  D3D11DrawRegistry
 
class  Mesh< VERTEX_BUFFER, COMPUTE_CONTROLLER, D3D11DrawContext >
 
class  Mesh< D3D11VertexBuffer, D3D11ComputeController, D3D11DrawContext >
 
class  D3D11PtexMipmapTexture
 
class  D3D11PtexTexture
 
class  D3D11VertexBuffer
 Concrete vertex buffer class for DirectX subvision and DirectX drawing. More...
 
class  DrawContext
 Base DrawContext class. More...
 
struct  DrawShaderSource
 
struct  DrawConfig
 
struct  DrawSourceConfig
 
class  EvalCoords
 Coordinates set on a limit surface. More...
 
class  EvalLimitContext
 LimitEval Context. More...
 
class  GLDrawContext
 OpenGL specialized DrawContext class. More...
 
struct  GLDrawConfig
 
struct  GLDrawSourceConfig
 
class  GLDrawRegistryBase
 
class  GLDrawRegistry
 
class  Mesh< VERTEX_BUFFER, COMPUTE_CONTROLLER, GLDrawContext >
 
class  GLPtexMipmapTexture
 
class  GLPtexTexture
 
class  GLSLComputeContext
 GLSL-Compute Refine Context. More...
 
class  GLSLComputeController
 Compute controller for launching GLSL Compute subdivision kernels. More...
 
class  GLSLTransformFeedbackComputeContext
 GLSL-Compute(transform-feedback) Refine Context. More...
 
class  GLSLTransformFeedbackComputeController
 Compute controller for launching GLSLTransformFeedback transform feedback subdivision kernels. More...
 
class  GLVertexBuffer
 Concrete vertex buffer class for GLSL subvision and OpenGL drawing. More...
 
class  MeshInterface
 
class  Mesh
 
class  NonCopyable
 
class  OmpComputeController
 Compute controller for launching OpenMP subdivision kernels. More...
 
class  OmpSmoothNormalController
 
class  TbbComputeController
 Compute controller for launching TBB subdivision kernels. More...
 
class  TbbSmoothNormalController
 
class  Vertex
 
struct  VertexBufferDescriptor
 Describes vertex elements in interleaved data buffers. More...
 

Typedefs

typedef MeshInterface
< D3D11DrawContext
D3D11MeshInterface
 
typedef void(* ErrorCallbackFunc )(ErrorType err, const char *message)
 
typedef void(* WarningCallbackFunc )(const char *message)
 Sets the warning callback function (default is "printf") More...
 
typedef MeshInterface
< GLDrawContext
GLMeshInterface
 
typedef std::bitset
< NUM_MESH_BITS
MeshBitset
 

Enumerations

enum  ErrorType {
  OSD_NO_ERROR, OSD_INTERNAL_CODING_ERROR, OSD_CL_PROGRAM_BUILD_ERROR, OSD_CL_KERNEL_CREATE_ERROR,
  OSD_CL_RUNTIME_ERROR, OSD_CUDA_GL_ERROR, OSD_GL_ERROR, OSD_GLSL_COMPILE_ERROR,
  OSD_GLSL_LINK_ERROR, OSD_D3D11_COMPILE_ERROR, OSD_D3D11_COMPUTE_BUFFER_CREATE_ERROR, OSD_D3D11_VERTEX_BUFFER_CREATE_ERROR,
  OSD_D3D11_BUFFER_MAP_ERROR
}
 
enum  MeshBits {
  MeshAdaptive = 0, MeshInterleaveVarying = 1, MeshPtexData = 2, MeshFVarData = 3,
  NUM_MESH_BITS = 4
}
 

Functions

void SetErrorCallback (ErrorCallbackFunc func)
 
void Error (ErrorType err)
 
void Error (ErrorType err, const char *format,...)
 
void SetWarningCallback (WarningCallbackFunc func)
 
void Warning (const char *format,...)
 
void OmpComputeStencils (VertexBufferDescriptor const &vertexDesc, float const *vertexSrc, float *vertexDst, unsigned char const *sizes, int const *offsets, int const *indices, float const *weights, int start, int end)
 
void TbbComputeStencils (VertexBufferDescriptor const &vertexDesc, float const *vertexSrc, float *vertexDst, unsigned char const *sizes, int const *offsets, int const *indices, float const *weights, int start, int end)
 

Typedef Documentation

Definition at line 40 of file d3d11Mesh.h.

typedef void(* ErrorCallbackFunc)(ErrorType err, const char *message)

Definition at line 53 of file error.h.

Definition at line 44 of file glMesh.h.

typedef std::bitset<NUM_MESH_BITS> MeshBitset

Definition at line 56 of file mesh.h.

typedef void(* WarningCallbackFunc)(const char *message)

Sets the warning callback function (default is "printf")

Definition at line 77 of file error.h.

Enumeration Type Documentation

enum ErrorType
Enumerator
OSD_NO_ERROR 
OSD_INTERNAL_CODING_ERROR 
OSD_CL_PROGRAM_BUILD_ERROR 
OSD_CL_KERNEL_CREATE_ERROR 
OSD_CL_RUNTIME_ERROR 
OSD_CUDA_GL_ERROR 
OSD_GL_ERROR 
OSD_GLSL_COMPILE_ERROR 
OSD_GLSL_LINK_ERROR 
OSD_D3D11_COMPILE_ERROR 
OSD_D3D11_COMPUTE_BUFFER_CREATE_ERROR 
OSD_D3D11_VERTEX_BUFFER_CREATE_ERROR 
OSD_D3D11_BUFFER_MAP_ERROR 

Definition at line 35 of file error.h.

enum MeshBits
Enumerator
MeshAdaptive 
MeshInterleaveVarying 
MeshPtexData 
MeshFVarData 
NUM_MESH_BITS 

Definition at line 49 of file mesh.h.

Function Documentation

void OpenSubdiv::OPENSUBDIV_VERSION::Osd::Error ( ErrorType  err)

Sends an OSD error

Parameters
errthe error type
void OpenSubdiv::OPENSUBDIV_VERSION::Osd::Error ( ErrorType  err,
const char *  format,
  ... 
)

Sends an OSD error with a message

Parameters
errthe error type
formatthe format of the message (followed by arguments)
void OpenSubdiv::OPENSUBDIV_VERSION::Osd::OmpComputeStencils ( VertexBufferDescriptor const &  vertexDesc,
float const *  vertexSrc,
float *  vertexDst,
unsigned char const *  sizes,
int const *  offsets,
int const *  indices,
float const *  weights,
int  start,
int  end 
)
void OpenSubdiv::OPENSUBDIV_VERSION::Osd::SetErrorCallback ( ErrorCallbackFunc  func)

Sets the error callback function (default is "printf")

Parameters
funcfunction pointer to the callback function
void OpenSubdiv::OPENSUBDIV_VERSION::Osd::SetWarningCallback ( WarningCallbackFunc  func)

Sets the warning callback function (default is "printf")

Parameters
funcfunction pointer to the callback function
void OpenSubdiv::OPENSUBDIV_VERSION::Osd::TbbComputeStencils ( VertexBufferDescriptor const &  vertexDesc,
float const *  vertexSrc,
float *  vertexDst,
unsigned char const *  sizes,
int const *  offsets,
int const *  indices,
float const *  weights,
int  start,
int  end 
)
void OpenSubdiv::OPENSUBDIV_VERSION::Osd::Warning ( const char *  format,
  ... 
)

Sends an OSD warning message

Parameters
formatthe format of the message (followed by arguments)