ripps7

ripps7


  • Name: [not set]
  • Favorite Languages: [not set]
  • Website: [not set]
  • Location: [not set]
  • About Me: [not set]

Recent Comments

  • Textured Box Tutorial
    06/20/2009 - 19:28

    Decided to try and break down the VertexBuffer into 6 buffers... each holding 6 Vertices (1 group for each face of cube).

    Needed to change cubeEffect.Texture each time before calling cube.RenderShape

    cubeEffect.Begin()
    cubeEffect.Texture = Texture1 // Texture2, etc..
    cube.RenderShape(...)
    cubeEffect.End()

    This is repeated 6 times in the Draw method, each time adding a differet texture.

    It works fine. Other then making a loop to repeat this short bit of code 6 times, is there a more efficent way to do this?

    Thanks!