35 #ifndef __SoftTissueMesh_h 36 #define __SoftTissueMesh_h 59 #ifndef __InternalOrganMesh_h 95 unsigned int texture_size = 1024,
96 unsigned int texture_3D_size = 64);
118 virtual void updateVBO(
int aTypeOfVBO,
int aTypeOfPrimitive);
183 #endif // __SoftTissueMesh_h virtual void updateVBO(int aTypeOfVBO, int aTypeOfPrimitive)
Update the VBO.
InternalOrganMesh is a class to handle a polygon mesh for an internal organ. Internal organs use bump...
SoftTissueMesh is a class to handle a polygon mesh for an internal organ. It uses procedural texturin...
virtual void defineDisplayShaderInput(int aShaderID)
Link the attributes to their id in the shader.
virtual bool isSoftTissue() const
return true if the mesh represent a soft tissue
virtual ~SoftTissueMesh()
Destructor.
virtual void initialize()
initialize the shaders, the buffers, the normal vectors and the textures
Class to handle a polygon mesh for an internal organ.
Shader is a class to handle shaders written in GLSL.
virtual void defineBumpMapShaderInput(int shader_id)
Link the attributes to their id in the shader bump map generation.
unsigned int m_colour_texture
virtual void generateTextures()
generates the textures
virtual void defineColourTextureShaderInput(int shader_id)
int m_use_3D_colour_texture
Shader m_colour_texture_shader
unsigned int m_colour_texture_frame_buffer
SoftTissueMesh(bool optimize_texture_coordinates=true, unsigned int texture_size=1024, unsigned int texture_3D_size=64)
Default Constructor.