Jump to content
  • Advertisement

Tw3tye

Member
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

117 Neutral

About Tw3tye

  • Rank
    Newbie
  1. Hello. short demonstration i got functions that return me "SDL_Surface* surf_Screen" i want to aces it ".format" member but i got a problem check it out. /* roughtly */ in App class, is private, SDL_Surface *surf_Screen; in Menu class, is private, SDL_Surface *surf_MouseIcon; surf_Screen = SDL_SetVideoMode(800,600,32,SDL_HWSURFACE | SDL_DOUBLEBUF); surf_MouseIcon = IMG_Load("why are you reading this useless part"); SDL_Surface* App::GET_surf_Screen() { return surf_Screen; } bool App::Init() { SDL_SetColorKey(*objMenu.GETP_surf_MouseIcon(), SDL_SRCCOLORKEY, SDL_MapRGB( (GET_surf_Screen()->format), 255, 0,255)); } /*surf_MouseIcon() returns me memory adres of the memory adres of that.*/ /* my problem starts at GET_surf_Screen()->format */ /* i cant aces ".format / ->format" from SDL_Surface */ /* so my question is : Do i need to make a function that returns : "return surf_Screen->format" */ /* or is there a fix to this */ EDIT: i fixed it SDL_SetColorKey(*objMenu.GETP_surf_MouseIcon(), SDL_SRCCOLORKEY, SDL_MapRGB( ((GET_surf_Screen())->format), 255, 0,255)); i put parentheses around the function"GET_surf_Screen()" and then do " ->format "
  2. When i was thinking how to name the post i fount my answer. Weird, this one is. Edit: yes its just what i need. Thank you for the help. Edit2: How to delete post. EX i double posted by accident. Can help on that. Thank you again for that fast replay
  3. Double post. do not get me started =,= Here is a good tutorial if you are on subject of Variable ranges: http://msdn.microsoft.com/en-us/library/s3f49ktz%28v=vs.80%29.aspx
  4. Hello. i am trying to find a tutorial on "This" cause i cant find it on google, cause i cant name it really. So i just figured out that Uint8 will store only to max of 255 and i am quite unlucky to find a tutorial or page on a subject of: int32 ranges from -300000 to 300000 and putting S before int will make it "signed", therefore will not allow it to go to -value. and so on. can you gimme a hint " what to search for " or a tutorial. thank you in front.
  5. Tw3tye

    How to handle actions in game

    Only shame is that my native language is not englis, so i don't know what vector means or etc it will be some hard work. Anyway thank you for replay.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!