Available Methods
- glDisable ( )
- glEnable ( )
- glPopMatrix ( )
- glPushMatrix ( )
- glColor4f ( )
- glTranslatef ( )
- glTranslated ( )
- glBegin ( )
- glScalef ( )
- glBlendFunc ( )
- glRotatef ( )
- glEnd ( )
- glLineWidth ( )
- glScaled ( )
- glDepthMask ( )
- glBindTexture ( )
- glVertex3f ( )
- glMatrixMode ( )
- glColor3f ( )
- glRotated ( )
- glVertex2i ( )
- glLoadIdentity ( )
- glVertex2d ( )
- glColor4d ( )
- glGetInteger ( )
- glViewport ( )
- glNormal3f ( )
- glVertex3d ( )
- glClearColor ( )
- glEndList ( )
- glClear ( )
- glNewList ( )
- glVertex2f ( )
- glCallList ( )
- glDeleteLists ( )
- glShadeModel ( )
- glTexCoord2f ( )
- glTexParameteri ( )
- glDeleteTextures ( )
- glPushAttrib ( )
- glGenTextures ( )
- glTexEnvf ( )
- glGetBoolean ( )
- glAlphaFunc ( )
- glGenLists ( )
- glDepthFunc ( )
- glPixelStorei ( )
- glOrtho ( )
- glTexImage2D ( )
- glPointSize ( )
- glPopAttrib ( )
- glClearDepth ( )
- glDrawElements ( )
- glDrawArrays ( )
- glColorMask ( )
- GL_FALSE
- GL_LINEAR
- glGetTexImage ( )
- glPolygonOffset ( )
- GL_REPEAT
- glGetError ( )
- glTexParameterf ( )
- glMultMatrixf ( )
- GL_QUADS
- glMultMatrix ( )
- glDrawBuffer ( )
- glPolygonMode ( )
- glEnableClientState ( )
- glFlush ( )
- glTexSubImage2D ( )
- GL_SRC_ALPHA
- glReadPixels ( )
- GL_TEXTURE_2D ( )
- GL_NEAREST
- glColor4ub ( )
- glFrontFace ( )
- glCopyTexImage2D ( )
- glVertexPointer ( )
- glTexImage1D ( )
- glReadBuffer ( )
- glScissor ( )
- GL_LINEAR_MIPMAP_NEAREST
- GL_NO_ERROR
- glTexCoordPointer ( )
- GL_RGBA
- GL_CLAMP
- glDisableClientState ( )
Related Classes
- java.nio.ByteBuffer
- java.awt.image.BufferedImage
- java.nio.FloatBuffer
- java.nio.IntBuffer
- net.minecraft.world.World
- net.minecraft.item.ItemStack
- net.minecraft.block.Block
- net.minecraft.client.Minecraft
- net.minecraft.entity.Entity
- net.minecraft.entity.player.EntityPlayer
- net.minecraft.util.ResourceLocation
- net.minecraft.tileentity.TileEntity
- net.minecraft.client.renderer.Tessellator
- net.minecraft.util.math.BlockPos
- net.minecraft.client.gui.FontRenderer
- org.lwjgl.input.Mouse
- net.minecraftforge.fml.relauncher.Side
- net.minecraftforge.fml.common.eventhandler.SubscribeEvent
- net.minecraft.util.EnumFacing
- net.minecraftforge.fml.relauncher.SideOnly
- net.minecraft.util.math.MathHelper
- net.minecraft.block.state.IBlockState
- net.minecraft.util.math.Vec3d
- net.minecraft.client.renderer.GlStateManager
- net.minecraft.client.renderer.vertex.DefaultVertexFormats
Java Code Examples for org.lwjgl.opengl.GL11#glCopyTexImage2D()
The following examples show how to use
org.lwjgl.opengl.GL11#glCopyTexImage2D() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PBufferUniqueGraphics.java From slick2d-maven with BSD 3-Clause "New" or "Revised" License | 6 votes |
/** * Initialise the PBuffer that will be used to render to * * @throws SlickException */ private void init() throws SlickException { try { Texture tex = InternalTextureLoader.get().createTexture(image.getWidth(), image.getHeight(), image.getFilter()); pbuffer = new Pbuffer(screenWidth, screenHeight, new PixelFormat(8, 0, 0), null, null); // Initialise state of the pbuffer context. pbuffer.makeCurrent(); initGL(); image.draw(0,0); GL11.glBindTexture(GL11.GL_TEXTURE_2D, tex.getTextureID()); GL11.glCopyTexImage2D(GL11.GL_TEXTURE_2D, 0, GL11.GL_RGBA, 0, 0, tex.getTextureWidth(), tex.getTextureHeight(), 0); image.setTexture(tex); Display.makeCurrent(); } catch (Exception e) { Log.error(e); throw new SlickException("Failed to create PBuffer for dynamic image. OpenGL driver failure?"); } }
Example 2
Source File: PBufferUniqueGraphics.java From slick2d-maven with BSD 3-Clause "New" or "Revised" License | 6 votes |
/** * @see org.newdawn.slick.Graphics#disable() */ protected void disable() { // Bind the texture after rendering. GL11.glBindTexture(GL11.GL_TEXTURE_2D, image.getTexture().getTextureID()); GL11.glCopyTexImage2D(GL11.GL_TEXTURE_2D, 0, GL11.GL_RGBA, 0, 0, image.getTexture().getTextureWidth(), image.getTexture().getTextureHeight(), 0); try { Display.makeCurrent(); } catch (LWJGLException e) { Log.error(e); } SlickCallable.leaveSafeBlock(); }
Example 3
Source File: ImmediateModeOGLRenderer.java From slick2d-maven with BSD 3-Clause "New" or "Revised" License | 4 votes |
/** * @see org.newdawn.slick.opengl.renderer.SGL#glCopyTexImage2D(int, int, int, int, int, int, int, int) */ public void glCopyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height, int border) { GL11.glCopyTexImage2D(target, level, internalFormat, x, y, width, height, border); }