|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcrystalspace.jbind.impl.csNativeObject
crystalspace.jbind.impl.csutil.refcount.csRefCount
crystalspace.jbind.impl.csgfx.shadervar.csShaderVariable
Field Summary | |
static int |
COLOR
|
static int |
FLOAT
|
static int |
INT
|
static int |
RENDERBUFFER
|
static int |
TEXTURE
|
static int |
VECTOR2
|
static int |
VECTOR3
|
static int |
VECTOR4
|
Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
Constructor Summary | |
csShaderVariable(iPointer nPointer)
|
|
csShaderVariable(long name)
|
Method Summary | |
long |
getName()
Get the name of the variable. |
int |
getType()
Get type of data stored. |
boolean |
getValue(csRGBpixel value)
Retrieve a color. |
boolean |
getValue(csVector2 value)
Retireve a csVector2. |
boolean |
getValue(csVector3 value)
Retrieve a csVector3. |
boolean |
getValue(csVector4 value)
Retrieve a csVector4. |
boolean |
getValue(iRenderBuffer value)
Retrieve a iRenderBuffer. |
boolean |
getValue(iTextureHandle value)
Retrieve a texture handle. |
boolean |
getValue(iTextureWrapper value)
Retrieve a texture wrapper. |
float |
getValueFloat()
Retrieve a float. |
int |
getValueInt()
Retireve an int. |
void |
setAccessor(iShaderVariableAccessor a)
Set an accessor to use when getting the value. |
void |
setType(int t)
Set type (calling this after SetValue will cause undefined behaviour). |
boolean |
setValue(csRGBpixel value)
Store a color. |
boolean |
setValue(csVector2 value)
Store a csVector2. |
boolean |
setValue(csVector3 value)
Store a csVector3. |
boolean |
setValue(csVector4 value)
Store a csVector4. |
boolean |
setValue(float value)
Store a float. |
boolean |
setValue(int value)
Store an int. |
boolean |
setValue(iRenderBuffer value)
Store a render buffer. |
boolean |
setValue(iTextureHandle value)
Store a texture handle. |
boolean |
setValue(iTextureWrapper value)
Store a texture wrapper. |
Methods inherited from class crystalspace.jbind.impl.csutil.refcount.csRefCount |
isNativePointerValidSafe, nDelete |
Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, equals, finalize, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, isNativePointerValidSafe, newNativeObject, setMemoryOwner, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int INT
public static final int FLOAT
public static final int COLOR
public static final int TEXTURE
public static final int RENDERBUFFER
public static final int VECTOR2
public static final int VECTOR3
public static final int VECTOR4
Constructor Detail |
public csShaderVariable(iPointer nPointer)
nPointer
- public csShaderVariable(long name)
Method Detail |
public long getName()
public int getType()
public boolean getValue(csVector4 value)
value
-
public boolean getValue(csVector3 value)
value
-
public boolean getValue(csVector2 value)
value
-
public boolean getValue(iRenderBuffer value)
value
-
public boolean getValue(iTextureWrapper value)
value
-
public boolean getValue(iTextureHandle value)
value
-
public boolean getValue(csRGBpixel value)
value
-
public float getValueFloat()
public int getValueInt()
public void setAccessor(iShaderVariableAccessor a)
a
- public void setType(int t)
t
- public boolean setValue(csVector4 value)
value
-
public boolean setValue(csVector3 value)
value
-
public boolean setValue(csVector2 value)
value
-
public boolean setValue(iRenderBuffer value)
value
-
public boolean setValue(iTextureWrapper value)
value
-
public boolean setValue(iTextureHandle value)
value
-
public boolean setValue(csRGBpixel value)
value
-
public boolean setValue(float value)
value
-
public boolean setValue(int value)
value
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |