|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.rendering.r3d.opengl.rendering.dem.texturing.FragmentTexture
public class FragmentTexture
A TextureTile
applied to a RenderMeshFragment
, also wraps OpenGL resources (texture coordinates).
Constructor Summary | |
---|---|
FragmentTexture(RenderMeshFragment fragment,
TextureTile texture)
|
|
FragmentTexture(RenderMeshFragment fragment,
TextureTile texture,
double[] translationVector,
PooledByteBuffer buffer)
|
Method Summary | |
---|---|
boolean |
cachingEnabled()
|
void |
clearAll(javax.media.opengl.GL gl)
Clears up all data in this fragment texture, this disables the texture and frees up all OpenGL references, as well as releasing the direct texture coordinates buffer. |
void |
disable(javax.media.opengl.GL gl)
Remove the buffer object from the gpu. |
void |
enable(javax.media.opengl.GL gl)
Enable this Fragment texture by generating a buffer object in the given context. |
boolean |
equals(Object other)
|
void |
generateTextureCoordinates(PooledByteBuffer directTexCoordBuffer,
double[] translationVector)
Generate the texture coordinates for the current fragment and the current texture. |
int |
getGLTextureId()
|
int |
getGLVertexCoordBufferId()
|
Integer |
getId()
|
double |
getTextureResolution()
Returns the resolution of the texture (world units per pixel). |
TextureTile |
getTextureTile()
|
int |
hashCode()
Implementation as proposed by Joshua Block in Effective Java (Addison-Wesley 2001), which supplies an even distribution and is relatively fast. |
boolean |
isEnabled()
|
void |
unload()
Unload |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FragmentTexture(RenderMeshFragment fragment, TextureTile texture)
fragment
- texture
- public FragmentTexture(RenderMeshFragment fragment, TextureTile texture, double[] translationVector, PooledByteBuffer buffer)
fragment
- needed to generate the texture coordinatestexture
- translationVector
- buffer
- Method Detail |
---|
public void generateTextureCoordinates(PooledByteBuffer directTexCoordBuffer, double[] translationVector)
directTexCoordBuffer
- translationVector
- public double getTextureResolution()
public TextureTile getTextureTile()
public int getGLTextureId()
public int getGLVertexCoordBufferId()
public void enable(javax.media.opengl.GL gl)
gl
- to generate the buffer object to.public void disable(javax.media.opengl.GL gl)
gl
- public void unload()
public void clearAll(javax.media.opengl.GL gl)
gl
- openGL context to which the texture was bounded to.public boolean isEnabled()
public boolean cachingEnabled()
public boolean equals(Object other)
equals
in class Object
public int hashCode()
Combining the hash code(s) computed above: result = 37 * result + code;
hashCode
in class Object
Object.hashCode()
public Integer getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |