Beispiel #1
0
 /// <summary>Render display list using supplied block texture and position.</summary>
 public static void RenderDisplayList(int displayListId, float x, float y, float z, BlockTextureType texture)
 {
     GL.BindTexture(TextureTarget.Texture2D, TextureLoader.GetBlockTexture(texture));
     GL.PushMatrix();
     GL.Translate(x, y, z);
     GL.CallList(displayListId);
     GL.PopMatrix();
 }
Beispiel #2
0
 /// <summary>Render display list using supplied block texture and coords.</summary>
 [Obsolete("This isnt being used right now.")] public static void RenderDisplayList(int displayListId, ref Coords coords, BlockTextureType texture)
 {
     GL.BindTexture(TextureTarget.Texture2D, TextureLoader.GetBlockTexture(texture));
     GL.PushMatrix();
     GL.Translate(coords.Xf, coords.Yf, coords.Zf);
     GL.CallList(displayListId);
     GL.PopMatrix();
 }
Beispiel #3
0
 /// <summary>Render display list using supplied block texture.</summary>
 public static void RenderDisplayList(int displayListId, BlockTextureType texture)
 {
     GL.BindTexture(TextureTarget.Texture2D, TextureLoader.GetBlockTexture(texture));
     GL.CallList(displayListId);
 }
Beispiel #4
0
 /// <summary>Render display list using supplied block texture.</summary>
 public static void RenderDisplayList(int displayListId, BlockTextureType texture)
 {
     GL.BindTexture(TextureTarget.Texture2D, TextureLoader.GetBlockTexture(texture));
     GL.CallList(displayListId);
 }
Beispiel #5
0
 public static void RenderDisplayList(int displayListId, ref Coords coords, BlockTextureType texture)
 {
     GL.BindTexture(TextureTarget.Texture2D, TextureLoader.GetBlockTexture(texture));
     GL.PushMatrix();
     GL.Translate(coords.Xf, coords.Yf, coords.Zf);
     GL.CallList(displayListId);
     GL.PopMatrix();
 }
Beispiel #6
0
 /// <summary>Render display list using supplied block texture and position.</summary>
 public static void RenderDisplayList(int displayListId, float x, float y, float z, BlockTextureType texture)
 {
     GL.BindTexture(TextureTarget.Texture2D, TextureLoader.GetBlockTexture(texture));
     GL.PushMatrix();
     GL.Translate(x, y, z);
     GL.CallList(displayListId);
     GL.PopMatrix();
 }
Beispiel #7
0
 public static int GetBlockTexture(BlockTextureType texture)
 {
     return(_blockTextures[(int)texture]);
 }
Beispiel #8
0
 public static int GetBlockTexture(BlockTextureType texture)
 {
     return _blockTextures[(int)texture];
 }