Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#Actualpandaraf

Posted 20 June 2012 - 05:43 AM

Hi, i want to make buttons like Lazyfoo has : http://lazyfoo.net/S...son09/index.php
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. Posted Image

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). Posted Image

I want to make buttons in SDL_opengl Posted Image
So, How to use SDL_BlitSurface to make Button in SDL_opengl?

#1pandaraf

Posted 19 June 2012 - 10:29 PM

Hi, i want to make buttons like Lazyfoo has : http://lazyfoo.net/SDL_tutorials/lesson09/index.php
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). :D

So, the question is : How to use SDL_BlitSurface to make Button in SDL_opengl?
I hope, i can make buttons in SDL_opengl :)

PARTNERS