|
The Vish Visualization Shell 0.3
Vish
|
A helper class to draw lines with a shiny, glossy texture. More...
#include <ocean/GLvish/GlossyTexture.hpp>
Protected Member Functions | |
| RefPtr< GlossyTexture > | getLineTexture (MemCore::Intercube &CacheObject, VGLRenderContext &Context, int TextureUnit=0) const |
| Setup the line texture cached relative to the given object. | |
| GlossyLines (VObject *parent) | |
| Construct from VObject, this is usually the parent's class "this" pointer. | |
| ~GlossyLines () | |
| Destructor. | |
A helper class to draw lines with a shiny, glossy texture.
No shaders used here, this is an old standard OpenGL technique.
|
protected |
Destructor.
It destructs.
|
protected |
Setup the line texture cached relative to the given object.
This may be a data field, or just the object's local State object.
What is then left to do is to active the texture by constructing a GlossyTexture::Render object. Code looks like this for instance:
Note that tangential vectors \i must be defined during rendering for this glossy texture to work. They need to be specified as 3D texture coordinates.