Пример #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();
 }
Пример #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();
 }
Пример #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);
 }
Пример #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);
 }
Пример #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();
 }
Пример #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();
 }
Пример #7
0
 public static int GetBlockTexture(BlockTextureType texture)
 {
     return(_blockTextures[(int)texture]);
 }
Пример #8
0
 public static int GetBlockTexture(BlockTextureType texture)
 {
     return _blockTextures[(int)texture];
 }