コード例 #1
0
ファイル: SkyBox.cs プロジェクト: max1s/OpenTK-Wrapper
 public SkyBox()
 {
     myVBO        = new VertexBufferObject(5);
     frontTexture = new Texture("fronttexture.png");
     frontTexture.LoadTexture();
     backTexture = new Texture("backtexture.png");
     backTexture.LoadTexture();
     rightTexture = new Texture("righttexture.png");
     rightTexture.LoadTexture();
     leftTexture = new Texture("lefttexture.png");
     leftTexture.LoadTexture();
     topTexture = new Texture("toptexture.png");
     topTexture.LoadTexture();
     bottomTexture = new Texture("bottomtexture.png");
     bottomTexture.LoadTexture();
     Generate();
 }
コード例 #2
0
ファイル: ObjectFile.cs プロジェクト: max1s/OpenTK-Wrapper
 private ObjectFile()
 {
     vbo = new VertexBufferObject(8);
 }