List of usage examples for org.lwjgl.opengl GL11 glBitmap
public static void glBitmap(@NativeType("GLsizei") int w, @NativeType("GLsizei") int h, @NativeType("GLfloat") float xOrig, @NativeType("GLfloat") float yOrig, @NativeType("GLfloat") float xInc, @NativeType("GLfloat") float yInc, @Nullable @NativeType("GLubyte const *") long data)
From source file:name.martingeisse.ecotools.simulator.ui.console.OpenGlCharacterGenerator.java
License:Open Source License
/** * Draws a block using the current OpenGL context and the specified raster position. * Implementation issues prevent to just re-use the current raster position. * /*w w w. j av a2 s. c o m*/ * @param x the x raster position to set * @param y the y raster position to set * @param characterCode the character code * @param foreground the foreground color index * @param background the background color index */ public void drawBlock(float x, float y, int characterCode, int foreground, int background) { /** * Implementation note: glColor3f(...) only sets the color in a "thin" way - * it does not push the new color down the rendering pipeline. Drawing a normal * primitive usually then takes the new color with it. Unfortunately, glBitmap(...) * is NOT such a primitive, thus the new color would never take effect as long * as only bitmaps are drawn. However, glRasterPos2f(...) also takes the new color * with it, so we explicitly set the raster position in this method just to * set the color. */ OpenGlColors.useColor(background); GL11.glRasterPos2f(x, y); buffer.position(characterCode * 2 * 16 * 4 + 16 * 4); GL11.glBitmap(8, 16, 0.0f, 0.0f, 0.0f, 0.0f, buffer); OpenGlColors.useColor(foreground); GL11.glRasterPos2f(x, y); buffer.position(characterCode * 2 * 16 * 4); GL11.glBitmap(8, 16, 0.0f, 0.0f, 0.0f, 0.0f, buffer); }
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glBitmap(int a, int b, float c, float d, float e, float f, ByteBuffer g) { GL11.glBitmap(a, b, c, d, e, f, g); }
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glBitmap(int a, int b, float c, float d, float e, float f, long g) { GL11.glBitmap(a, b, c, d, e, f, g); }