Inheritance diagram for item:
Public Methods | |
item (int vertexes, int tris, int texi, int normals=0) | |
void | move (float x, float y, float z) |
void | setdistance (float x, float y, float z) |
void | rotate (float _angle, float x, float y, float z) |
virtual void | draw () |
void | setcolor (ub4 _color) |
void | setcolor (int _color) |
void | settexture (texture *tex) |
void | setshader (char type, shader sh) |
float | distance2 (float3 eyep, float3 d) const |
void | recalc_distance2 () |
Public Attributes | |
float | dist2 |
int | transparent |
int | cull |
int | zwrite |
int | d_test |
Protected Attributes | |
shader | vsh |
shader | fsh |
texture * | t |
ub4 | color |
f3 | translation |
f3 | distance |
f3 | rot |
float | angle |
|
pass-thru constructor (see model) |
|
return squared distance of object (between "translation" and "eye") based on eye coordinates and direction of view |
|
draw this model unsing OpenGL commands Reimplemented from model. Reimplemented in house, and fbo_switch. |
|
set translation of object to (x,y,z) |
|
recalculate squared distance from eye and put it in member variable dist2 |
|
set rotation of object to angle around axis (x,y,z). Rotation is applied after translation |
|
set color for this model
|
|
set color for this model
|
|
set "translation" used to calculate distance of object to (x,y,z) |
|
set fragment/vertex shader for this model
|
|
set texture used for this model
|
|
|
|
|
|
if true (default), back faces will be culled for this model |
|
if true, z-buffer will be tested (default). If false, z-buffer will be ignored. |
|
cached distance set by recalc_distance2() |
|
|
|
|
|
|
|
|
|
|
|
if true, items is transparent and order of drawing matters |
|
|
|
if true (default), z-buffer will be updated. If false, z-buffer values will not be updated while drawing this model. |