Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Using surfaces  (Read 803 times)

0 Members and 1 Guest are viewing this topic.

Giverny

Christ on Acid
Using surfaces
« on: May 05, 2008, 03:09:39 am »
  • Bitte Scheiße
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Female
  • Posts: 1159
Quote
background_delete (bgDark);
bgDark = background_create_from_screen (0,0,256,192,false,true,false);//slow
 
// invert
draw_set_blend_mode_ext (bm_inv_dest_color, bm_zero);
draw_set_color (c_white);
draw_rectangle (0,0,256,192,false);
draw_set_blend_mode_ext (bm_inv_dest_color, bm_zero);
draw_set_color (c_white);
draw_rectangle (0,0,256,192,false);
background_delete (bgTwili);

bgTwili = background_create_from_screen (0,0,256,192,false,false,false);//slow
draw_set_blend_mode_ext (bm_one, bm_inv_src_color);
draw_set_blend_mode(bm_add)
draw_background_ext (bgDark,0,0,1,1,0,c_white,1);     
draw_set_blend_mode (bm_normal);

score = fps;

Im back(in black)! I must know, how would I use surfaces to make this code more efficiant? Should I draw on a surface instead of a BG?
Logged
THEGivernyPROJECT
~LynkW-Surrender Global
  • Surrender Global Forums
Re: Using surfaces
« Reply #1 on: May 05, 2008, 12:04:58 pm »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
Did you not just post the exact same thing just refering to bloom instead? Please don't duplicate topics.
Logged

Giverny

Christ on Acid
Re: Using surfaces
« Reply #2 on: May 05, 2008, 03:16:41 pm »
  • Bitte Scheiße
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Female
  • Posts: 1159
Sorry, the pther topic was on how to make it better. This one is specific to sufaces.
Logged
THEGivernyPROJECT
~LynkW-Surrender Global
  • Surrender Global Forums
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.128 seconds with 40 queries.

anything