Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 11th, 2012  |  syntax: None  |  size: 0.38 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Porting allegro 4 to allegro 5
  2. texture_number = allegro_gl_make_texture_ex(AGL_TEXTURE_MASKED, my_bitmap, GL_RGBA);
  3.        
  4. GLuint texture_number;
  5. ALLEGRO_BITMAP *my_bitmap;
  6.  
  7. my_bitmap = al_load_bitmap("terrainImages/ground_32.bmp");
  8. texture_number = allegro_gl_make_texture_ex(AGL_TEXTURE_MASKED, my_bitmap, GL_RGBA);
  9.  
  10. glEnable(GL_TEXTURE_2D);
  11. glBindTexture(GL_TEXTURE_2D, texture_number);