|
|||||||||||
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.csgfx.rgbpixel.csRGBcolor
An RGB color. This class is used whenever we need just R, G and B information, such as when defining a color palette.
Field Summary |
Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
Constructor Summary | |
csRGBcolor()
Constructor (initialize to zero). |
|
csRGBcolor(iPointer nPointer)
|
|
csRGBcolor(short r,
short g,
short b)
Initialize the color with some R/G/B value. |
Method Summary | |
csRGBcolor |
add(csRGBcolor c)
add two csRGBcolors Definition at line 84 of file rgbpixel.h. |
short |
blue()
The red, green, blue components. |
void |
blue(short b)
The red, green, blue components. |
boolean |
equals(java.lang.Object c)
Compare with an csRGBcolor. |
short |
green()
The red, green, blue components. |
void |
green(short g)
The red, green, blue components. |
protected boolean |
isNativePointerValidSafe(long pointer)
|
protected void |
nDelete(long pointer)
|
boolean |
nEquals(csRGBcolor c)
Compare with an csRGBcolor. |
short |
red()
The red, green, blue components. |
void |
red(short r)
The red, green, blue components. |
void |
set(short r,
short g,
short b)
Assign given red/green/blue values to this pixel. |
Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, finalize, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public csRGBcolor(iPointer nPointer)
nPointer
- public csRGBcolor()
public csRGBcolor(short r, short g, short b)
r
- g
- b
- Method Detail |
protected void nDelete(long pointer)
nDelete
in class csNativeObject
csNativeObject.nDelete(long)
protected boolean isNativePointerValidSafe(long pointer)
isNativePointerValidSafe
in class csNativeObject
crystalspace.jbind.impl.csNativeObject#isNativePointerValidSafe()
public boolean nEquals(csRGBcolor c)
c
-
public csRGBcolor add(csRGBcolor c)
c
-
public boolean equals(java.lang.Object c)
equals
in class csNativeObject
Object.equals(java.lang.Object)
public void set(short r, short g, short b)
r
- g
- b
- public short blue()
public void blue(short b)
b
- public short green()
public void green(short g)
g
- public short red()
public void red(short r)
r
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |