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#GL_TEXTURE_2D
The following examples show how to use
org.lwjgl.opengl.GL11#GL_TEXTURE_2D .
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: TextureUtils.java From CodeChickenLib with GNU Lesser General Public License v2.1 | 6 votes |
public static void prepareTexture(int target, int texture, int min_mag_filter, int wrap) { GlStateManager.texParameter(target, GL11.GL_TEXTURE_MIN_FILTER, min_mag_filter); GlStateManager.texParameter(target, GL11.GL_TEXTURE_MAG_FILTER, min_mag_filter); if (target == GL11.GL_TEXTURE_2D) { GlStateManager.bindTexture(target); } else { GL11.glBindTexture(target, texture); } switch (target) { case GL12.GL_TEXTURE_3D: GlStateManager.texParameter(target, GL12.GL_TEXTURE_WRAP_R, wrap); case GL11.GL_TEXTURE_2D: GlStateManager.texParameter(target, GL11.GL_TEXTURE_WRAP_T, wrap); case GL11.GL_TEXTURE_1D: GlStateManager.texParameter(target, GL11.GL_TEXTURE_WRAP_S, wrap); } }
Example 2
Source File: TextureUtils.java From CodeChickenLib with GNU Lesser General Public License v2.1 | 6 votes |
public static void prepareTexture(int target, int texture, int min_mag_filter, int wrap) { GL11.glTexParameteri(target, GL11.GL_TEXTURE_MIN_FILTER, min_mag_filter); GL11.glTexParameteri(target, GL11.GL_TEXTURE_MAG_FILTER, min_mag_filter); if(target == GL11.GL_TEXTURE_2D) GlStateManager.bindTexture(target); else GL11.glBindTexture(target, texture); switch (target) { case GL12.GL_TEXTURE_3D: GL11.glTexParameteri(target, GL12.GL_TEXTURE_WRAP_R, wrap); case GL11.GL_TEXTURE_2D: GL11.glTexParameteri(target, GL11.GL_TEXTURE_WRAP_T, wrap); case GL11.GL_TEXTURE_1D: GL11.glTexParameteri(target, GL11.GL_TEXTURE_WRAP_S, wrap); } }
Example 3
Source File: Texture.java From OpenGL-Animation with The Unlicense | 4 votes |
protected Texture(int textureId, int size) { this.textureId = textureId; this.size = size; this.type = GL11.GL_TEXTURE_2D; }