|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmako5.gfx.MaskedImage
public class MaskedImage
An image designed for use with OpenGL. This is specifically for use in a 2D environment in which sprites are needed. These types of images have their image data stored as a reference in video memory like those in C++.
| Constructor Summary | |
|---|---|
MaskedImage(int width_,
int height_,
int texID,
int mskID)
Makes a new image with the given height, width, and texture id. |
|
| Method Summary | |
|---|---|
void |
blindRender(float x,
float y)
Renders a quad of the image width and height without binding the texture first. |
void |
blindRenderAt(float x,
float y)
Renders this image centered at the desired coordinates. |
boolean |
destroy()
Attempts to destroy this image. |
int |
getHeight()
Returns the height of this image. |
int |
getWidth()
Returns the width of this image. |
boolean |
isDestroyed()
Returns true if this image has been destroyed and is therefore unusable. |
void |
render(float x,
float y)
Renders this image so that the bottom left corner is at the desired coordinates, and image data goes up and to the right. |
void |
renderAt(float x,
float y)
Renders this image centered at the desired coordinates. |
boolean |
resize(int width_,
int height_)
This does not support resizing of images and simply returns false. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MaskedImage(int width_,
int height_,
int texID,
int mskID)
| Method Detail |
|---|
public boolean destroy()
destroy in interface Imagepublic boolean isDestroyed()
isDestroyed in interface Imagepublic int getWidth()
getWidth in interface Imagepublic int getHeight()
getHeight in interface Image
public boolean resize(int width_,
int height_)
resize in interface Imagewidth_ - the new image widthheight_ - the new image height
public void render(float x,
float y)
render in interface Imagex - the target x-coordinate to render toy - the target y-coordinate to render to
public void renderAt(float x,
float y)
renderAt in interface Imagex - the target x-coordinate to render toy - the target y-coordinate to render to
public void blindRender(float x,
float y)
x - the target x-coordinate to render toy - the target y-coordinate to render to
public void blindRenderAt(float x,
float y)
x - the target x-coordinate to render toy - the target y-coordinate to render to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||