Search found 198 matches

by RandomDever
Fri Jul 31, 2009 2:54 am
Forum: Programming Discussion
Topic: SDL_Color Problem :)
Replies: 8
Views: 1167

SDL_Color Problem :)

Code:

Code: Select all

SDL_Color textColor {255, 255, 255};
Error:
'textColor' : looks like a function definition, but there is no parameter list; skipping apparent body
by RandomDever
Fri Jul 31, 2009 12:49 am
Forum: Programming Discussion
Topic: missing type specifier - int assumed SDL clean_up();
Replies: 1
Views: 248

missing type specifier - int assumed SDL clean_up();

void clean_up() { //Free the surfaces SDL_FreeSurface( background ); //Free the sound effects Mix_FreeChunk( scratch ); Mix_FreeChunk( high ); Mix_FreeChunk( med ); Mix_FreeChunk( low ); //Free the sound effects Mix_FreeMusic( music ); //Close the font TTF_CloseFont( font ); //Quit SDL_mixer Mix_Cl...
by RandomDever
Thu Jul 23, 2009 4:12 am
Forum: Programming Discussion
Topic: Lazyfoo Lesson 10
Replies: 2
Views: 432

Lazyfoo Lesson 10

/*This source code copyrighted by Lazy Foo' Productions (2004-2009) and may not be redestributed without written permission.*/ //The headers #include "SDL.h" #include "SDL_image.h" #include "SDL_ttf.h" #include <string> //Screen attributes const int SCREEN_WIDTH = 640;...
by RandomDever
Wed Jul 22, 2009 1:12 am
Forum: Programming Discussion
Topic: TTF Library
Replies: 5
Views: 367

Re: TTF Library

andrew wrote:Are you talking about Lesson 8?

If you are, it only looks for the arrow keys being pushed and not the ones from the number pad.
Yes
I know but i've tried both.
by RandomDever
Mon Jul 20, 2009 5:08 pm
Forum: Programming Discussion
Topic: TTF Library
Replies: 5
Views: 367

Re: TTF Library

New question. I am already using lazyfoo and I tried the key presses. nothing happened when i pressed a key.
so I then downloaded and pasted his source into my project and it still didn't work.
I'm so confused! :cry:
by RandomDever
Mon Jul 20, 2009 5:05 pm
Forum: Programming Discussion
Topic: SDL LoadBMP Problem
Replies: 27
Views: 2461

Re: SDL LoadBMP Problem

Yes it does. XD!
by RandomDever
Fri Jul 17, 2009 11:35 pm
Forum: Programming Discussion
Topic: TTF Library
Replies: 5
Views: 367

TTF Library

How would i load Times New Roman as a font?
by RandomDever
Fri Jul 17, 2009 11:34 pm
Forum: Programming Discussion
Topic: SDL LoadBMP Problem
Replies: 27
Views: 2461

Re: SDL LoadBMP Problem

Ahhh.
Спасибо
"thank you"
by RandomDever
Fri Jul 17, 2009 10:17 pm
Forum: Programming Discussion
Topic: SDL LoadBMP Problem
Replies: 27
Views: 2461

Re: SDL LoadBMP Problem

It works! I just didn't know it because VC++ is stupid..
I opened up the exe manually and it worked fine wtf.
VC++ didn't open it correctly i guess.
by RandomDever
Sun Jul 12, 2009 7:53 pm
Forum: Programming Discussion
Topic: SDL LoadBMP Problem
Replies: 27
Views: 2461

Re: SDL LoadBMP Problem

okay I just used source code from lazyfoo and it worked the same.
Vista? You think?
by RandomDever
Sun Jul 12, 2009 7:06 pm
Forum: Programming Discussion
Topic: SDL LoadBMP Problem
Replies: 27
Views: 2461

Re: SDL LoadBMP Problem

:cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry:
by RandomDever
Thu Jul 09, 2009 4:47 pm
Forum: Programming Discussion
Topic: SDL LoadBMP Problem
Replies: 27
Views: 2461

Re: SDL LoadBMP Problem

Here's a list of the dlls:
  • jpeg.dll
    libpng12-0.dll
    libtiff-4.dll
    SDL.dll
    SDL_image.dll
    zlib1.dll
by RandomDever
Sun Jul 05, 2009 11:52 pm
Forum: Programming Discussion
Topic: SDL LoadBMP Problem
Replies: 27
Views: 2461

Re: SDL LoadBMP Problem

I tried the if !image and also the 0, 0 thing and it just quits.
by RandomDever
Fri Jul 03, 2009 6:08 pm
Forum: Programming Discussion
Topic: SDL LoadBMP Problem
Replies: 27
Views: 2461

Re: SDL LoadBMP Problem

View above post
by RandomDever
Tue Jun 30, 2009 9:43 am
Forum: Programming Discussion
Topic: SDL LoadBMP Problem
Replies: 27
Views: 2461

Re: SDL LoadBMP Problem

OK #include "SDL.h" #include "SDL_image.h" #include <string> void apply_surface( int x, int y, SDL_Surface* source, SDL_Surface* destination ) { //Make a temporary rectangle to hold the offsets SDL_Rect offset; //Give the offsets to the rectangle offset.x = x; offset.y = y; //Bli...