Advertisement
ZoriaRPG

ZScript Cube

May 13th, 2017
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. const int SCREEN_CENTRE_X = 128;
  2.         const itn SCREEN_CENTRE_Y = 88;
  3.        
  4.         int cube[12]={SCREEN_CENTRE_X+30,SCREEN_CENTRE_Y+30, 1,  
  5.             SCREEN_CENTRE_X+30,SCREEN_CENTRE_Y-30, 1,
  6.             SCREEN_CENTRE_X-30,SCREEN_CENTRE_Y-30, 1,
  7.             SCREEN_CENTRE_X-30,SCREEN_CENTRE_Y+30, 1};
  8.            
  9.         int cube_uv[8]={0,0, 31,0, 31, 31, 31, 0}; //Texture coordinates.
  10.         //How mdo these work?
  11.         //!
  12.        
  13.         int cube_csets[4]={0,0,0,0}; //Csets
  14.        
  15.         int textures[10]; //Holds textures.
  16.         int tex_state; //Which texture to use this frame.
  17.        
  18.         int cube_tex[2]={2,2}; //Texture size.
  19.         Screen->Quad3D(3,cube,cube_uv, cube_csets,cube_tex, 0, textures[tex_state], 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement