iMeshDrawCallback Struct Reference (Crystal Space 2.0 Public API Reference)

| ## Public API Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
iMeshDrawCallback Struct Reference
Mesh support

Set a callback which is called just before the object is drawn. More...

`#include <iengine/mesh.h>`

Inheritance diagram for iMeshDrawCallback:

List of all members.

## Public Member Functions
virtual bool | BeforeDrawing (iMeshWrapper *spr, iRenderView *rview)=0
| Before drawing.

## Detailed Description

Set a callback which is called just before the object is drawn.

This is useful to do some expensive computations which only need to be done on a visible object. Note that this function will be called even if the object is not visible. In general it is called if there is a likely probability that the object is visible (i.e. it is in the same sector as the camera for example).

This callback is used by:

- iMeshWrapper

Definition at line 171 of file mesh.h.

## Member Function Documentation

virtual bool iMeshDrawCallback::BeforeDrawing | ( | iMeshWrapper * | spr,
|  | iRenderView * | rview
| ) |  | `[pure virtual]`

Before drawing.

It is safe to delete this callback in this function.

The documentation for this struct was generated from the following file:

- iengine/mesh.h