CSAD
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
csad::MeshFilter Class Reference

MeshFilter - a component of a graphical object. More...

Inheritance diagram for csad::MeshFilter:
csad::SceneComponent csad::Component csad::BaseObject

Public Member Functions

_FORCEINLINE LightingModelgetLightingModel ()
 Return used LightingModel.
 
_FORCEINLINE MaterialgetMaterial ()
 Return used material.
 
CSAD_API MeshgetMesh ()
 Return view geometry.
 
_FORCEINLINE ShadergetShader ()
 Return used shader.
 
CSAD_API VBOMeshgetVBOMesh ()
 Return vbo view geometry.
 
CSAD_API void * set (unsigned _int32, void *)
 used for any interface commands.
 
CSAD_API MeshFiltersetLightingModel (char *)
 Set LightingModel for use.
 
_FORCEINLINE MeshFiltersetLightingModel (const char *name)
 Set LightingModel for use.
 
CSAD_API MeshFiltersetLightingModel (LightingModel *)
 Set LightingModel for use.
 
CSAD_API MeshFiltersetMaterial (char *)
 Set material for use.
 
_FORCEINLINE MeshFiltersetMaterial (const char *name)
 Set material for use.
 
CSAD_API MeshFiltersetMaterial (Material *)
 Set material for use.
 
CSAD_API MeshFiltersetMesh (char *)
 Specifies the visible geometry by name.
 
_FORCEINLINE MeshFiltersetMesh (const char *name)
 Set view geometry.
 
CSAD_API MeshFiltersetMesh (BaseMesh *)
 Specifies the visible geometry.
 
CSAD_API MeshFiltersetShader (char *)
 Set shader for use.
 
_FORCEINLINE MeshFiltersetShader (const char *name)
 Set shader for use.
 
CSAD_API MeshFiltersetShader (Shader *)
 Set shader for use.
 
- Public Member Functions inherited from csad::SceneComponent
template<typename T >
_FORCEINLINE T * addComponent ()
 Add component of the specified type in the container if this component already exists, returns available.
 
template<typename T >
_FORCEINLINE T * getComponent ()
 Returns the component of the given type, if it is not in a container returns 0.
 
CSAD_API TransformgetContainer ()
 Returns the container in which the component.
 
virtual CSAD_API void prepare ()
 The event is called during the preparation stage.
 
virtual CSAD_API void render ()
 The event is called during the rendering of the model.
 
virtual CSAD_API void select ()
 The event is called during handling of a choice of object - crossing with ray.
 
- Public Member Functions inherited from csad::Component
template<typename T >
_FORCEINLINE T * addComponent ()
 Add component of the specified type in the container if this component already exists, returns available.
 
template<typename T >
_FORCEINLINE T * getComponent ()
 Returns the component of the given type, if it is not in a container returns 0.
 
_FORCEINLINE ContainerComponentsgetContainer ()
 Returns the container in which the component.
 
template<typename T >
_FORCEINLINE T * getContainer ()
 Returns the container in which the component, if the container does not match the given type 0 is returned.
 
virtual CSAD_API void quit ()
 The event is called before the program exits.
 
virtual CSAD_API void start ()
 This event is fired after the program start.
 
virtual CSAD_API void update ()
 This event is fired before rendering environment container component.
 
- Public Member Functions inherited from csad::BaseObject
_FORCEINLINE bool isContainer ()
 returns true if the object is a container.
 
_FORCEINLINE ParametersListread (ParametersList *data)
 read attributes object.
 
_FORCEINLINE void * type ()
 the output pointer to the typeid() of the class.
 
_FORCEINLINE void write (ParametersList *data)
 record attributes of the object.
 

Additional Inherited Members

- Public Types inherited from csad::BaseObject
enum  BASE {
  ANY = 0x00000000, EVENT = 0x00000001, TYPE = 0x00000002, CONTAINER = 0x00000003,
  MANAGER_COUNT = 0x00000004, MANAGER = 0x00000005, WRITE = 0x00000006, READ = 0x00000007,
  SELECT = 0x00000008, RUN = 0x00000009, LIST = 0x0000000A, LIST_COUNT = 0x0000000B,
  NAME = 0x0000000C, CHILD_NAME = 0x0000000D
}
 the basic format of the interface More...
 
- Static Public Member Functions inherited from csad::Component
static CSAD_API int regClass (const char *name, const void *info, tfSTDCALL_p_FUNC_p fun)
 

Detailed Description

MeshFilter - a component of a graphical object.

The mediator unifying component properties and models of geometry, allowing you to link the object's position with his image, performs the functions of a Manager of a geometry for a given object in the scene.

  csad::Graph::graph().getScene("MyScene")->getRoot()->addComponent<MeshFilter>()->setMesh( csad::Mesh::Quad() );
See Also
csad: scene Mesh Material Shader SceneComponent Transform