mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 23:14:19 +00:00
Renamed CoreGL* to GL* and merged CoreGL*Constants
This commit is contained in:
parent
038108fb76
commit
6deb142378
41 changed files with 13243 additions and 312 deletions
|
|
@ -168,24 +168,24 @@ public class FullScreenWindowedTest {
|
|||
|
||||
private void render() {
|
||||
//clear background
|
||||
CoreGL11.glClear(CoreGL11.GL_COLOR_BUFFER_BIT);
|
||||
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT);
|
||||
|
||||
// draw white quad
|
||||
CoreGL11.glPushMatrix();
|
||||
GL11.glPushMatrix();
|
||||
{
|
||||
CoreGL11.glTranslatef(quadPosition.x, quadPosition.y, 0);
|
||||
CoreGL11.glRotatef(angle, 0.0f, 0.0f, 1.0f);
|
||||
CoreGL11.glColor3f(1.0f, 1.0f, 1.0f);
|
||||
CoreGL11.glBegin(CoreGL11.GL_QUADS);
|
||||
GL11.glTranslatef(quadPosition.x, quadPosition.y, 0);
|
||||
GL11.glRotatef(angle, 0.0f, 0.0f, 1.0f);
|
||||
GL11.glColor3f(1.0f, 1.0f, 1.0f);
|
||||
GL11.glBegin(GL11.GL_QUADS);
|
||||
{
|
||||
CoreGL11.glVertex2i(-50, -50);
|
||||
CoreGL11.glVertex2i(50, -50);
|
||||
CoreGL11.glVertex2i(50, 50);
|
||||
CoreGL11.glVertex2i(-50, 50);
|
||||
GL11.glVertex2i(-50, -50);
|
||||
GL11.glVertex2i(50, -50);
|
||||
GL11.glVertex2i(50, 50);
|
||||
GL11.glVertex2i(-50, 50);
|
||||
}
|
||||
CoreGL11.glEnd();
|
||||
GL11.glEnd();
|
||||
}
|
||||
CoreGL11.glPopMatrix();
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -305,15 +305,15 @@ public class FullScreenWindowedTest {
|
|||
*/
|
||||
private void glInit() {
|
||||
// Go into orthographic projection mode.
|
||||
CoreGL11.glMatrixMode(CoreGL11.GL_PROJECTION);
|
||||
CoreGL11.glLoadIdentity();
|
||||
GL11.glMatrixMode(GL11.GL_PROJECTION);
|
||||
GL11.glLoadIdentity();
|
||||
GLU.gluOrtho2D(0, mode.width, 0, mode.height);
|
||||
CoreGL11.glMatrixMode(CoreGL11.GL_MODELVIEW);
|
||||
CoreGL11.glLoadIdentity();
|
||||
CoreGL11.glViewport(0, 0, mode.width, mode.height);
|
||||
GL11.glMatrixMode(GL11.GL_MODELVIEW);
|
||||
GL11.glLoadIdentity();
|
||||
GL11.glViewport(0, 0, mode.width, mode.height);
|
||||
|
||||
//set clear color to black
|
||||
CoreGL11.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
GL11.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
|
||||
//sync frame (only works on windows)
|
||||
Window.setVSyncEnabled(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue