Tests Pbuffers
| Modifier and Type | Field and Description |
|---|---|
| private float | angle
angle of quad |
| private float | angleRotation
degrees to rotate per frame |
| private static final float | MAX_SPEED
Max speed of all changable attributes |
| private DisplayMode | mode
Intended deiplay mode |
| private static final int | QUAD_SIZE
Size of the animated quad |
| private Vector2f | quadPosition
our quad moving around |
| private Vector2f | quadVelocity
our quadVelocity |
| private static int | texID
The shared texture |
| private TextureRenderer | texRenderer
The renderer to use when rendering to texture. |
| private float | texScaleX
For positioning our quad in the texture |
| private float | texScaleY
For positioning our quad in the texture |
| private static final int | TEXTURE_SIZE
Texture and pbuffer size |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | |
| private DisplayMode | findDisplayMode(int
Required width width, int Required height height, int Minimum required bits per pixel bpp)Retrieves a displaymode, if one such is available |
| private void | |
| pack-priv static void | |
| private static void | |
| private void | |
| public static void | |
| private void | |
| private void | |
| private void |
| angle | back to summary |
|---|---|
| private float angle angle of quad | |
| angleRotation | back to summary |
|---|---|
| private float angleRotation degrees to rotate per frame | |
| MAX_SPEED | back to summary |
|---|---|
| private static final float MAX_SPEED Max speed of all changable attributes | |
| mode | back to summary |
|---|---|
| private DisplayMode mode Intended deiplay mode | |
| QUAD_SIZE | back to summary |
|---|---|
| private static final int QUAD_SIZE Size of the animated quad | |
| quadPosition | back to summary |
|---|---|
| private Vector2f quadPosition our quad moving around | |
| quadVelocity | back to summary |
|---|---|
| private Vector2f quadVelocity our quadVelocity | |
| texID | back to summary |
|---|---|
| private static int texID The shared texture | |
| texRenderer | back to summary |
|---|---|
| private TextureRenderer texRenderer The renderer to use when rendering to texture. | |
| texScaleX | back to summary |
|---|---|
| private float texScaleX For positioning our quad in the texture | |
| texScaleY | back to summary |
|---|---|
| private float texScaleY For positioning our quad in the texture | |
| TEXTURE_SIZE | back to summary |
|---|---|
| private static final int TEXTURE_SIZE Texture and pbuffer size | |
| PbufferTest | back to summary |
|---|---|
| public PbufferTest(final int renderMode) | |
| cleanup | back to summary |
|---|---|
| private void cleanup() Cleans up the test | |
| execute | back to summary |
|---|---|
| public void execute() Executes the test | |
| findDisplayMode | back to summary |
|---|---|
| private DisplayMode findDisplayMode(int width, int height, int bpp) throws LWJGLException Retrieves a displaymode, if one such is available
| |
| glInit | back to summary |
|---|---|
| private void glInit() Initializes OGL | |
| initGLState | back to summary |
|---|---|
| pack-priv static void initGLState(int width, int height, float color) | |
| kill | back to summary |
|---|---|
| private static void kill(final String msg) | |
| logic | back to summary |
|---|---|
| private void logic() Performs the logic | |
| main | back to summary |
|---|---|
| public static void main(String[] args) Test entry point | |
| mainLoop | back to summary |
|---|---|
| private void mainLoop() Runs the main loop of the "test" | |
| processKeyboard | back to summary |
|---|---|
| private void processKeyboard() Processes keyboard input | |
| render | back to summary |
|---|---|
| private void render() | |