It use SDL_BlitSurface, i try that and work! But, actually i use SDL_opengl for the project. So, i can't use syntax like : "apply_surface( box.x, box.y, buttonSheet, screen, clip )" again.
I use this :
"void muncul(int x, int y, int x2, int y2, int x3, int y3, int x4, int y4, GLuint xyz)" that work for show texture correctly. Of course, its only image that appeared. Not like buttons that has mouse_over, mouse_up, mouse_down and mouse_out(like lazyfoo).
I want to make buttons in SDL_opengl
So, How to use SDL_BlitSurface to make Button in SDL_opengl?
Edited by pandaraf, 20 June 2012 - 05:43 AM.