- Viewing Profile: Reputation: DarkHorseKnight
Community Stats
- Group Members
- Active Posts 119
- Profile Views 2,940
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
#4996851 Left over garbage pixels from copying a pixel value to new location? C/SDL
Posted by DarkHorseKnight
on 03 November 2012 - 07:40 AM
#4942460 How can I track the mouse cursor position and then draw a line ?
Posted by DarkHorseKnight
on 23 May 2012 - 01:23 AM
I was asking how to draw a line under the mouse cursor not a course of fixing my so called problems ??? that were needed enforcements for my ease of use. Some people prefer less stuff. I prefer more stuff
but good advice for someone who needs that
#4938442 Beginner's Problem with SDL in C++
Posted by DarkHorseKnight
on 08 May 2012 - 11:48 AM
#undef main
#include <SDL/SDL.h>
int main( int argc, char **argv[] )
{
bool done = false;
SDL_Surface* hello = NULL;
SDL_Surface* screen = NULL;
SDL_Init( SDL_INIT_EVERYTHING );
screen = SDL_SetVideoMode( 640, 480, 32, SDL_SWSURFACE );
hello = SDL_LoadBMP( "hello.bmp" );
SDL_Event event;
while(!done)
{
SDL_BlitSurface( hello, NULL, screen, NULL );
while(SDL_PollEvent(&event))
{
switch(event.type)
{
case SDL_QUIT:
return 0;
break;
}
}
SDL_Flip( screen );
}
return 0;
}
Hopefully this works
Here is a pastebin link
http://pastebin.com/bJSx40g5
EDIT:
and about cin and cout you need to #undef main at the top of your main.cpp and "remove linker flag -lSDLmain in your IDE linker settings"
#4930638 OpenGL .obj Parser/Rendering Problem Really Really Need Help!
Posted by DarkHorseKnight
on 12 April 2012 - 12:38 PM
#4929172 is there a way to functionize this code? SDL
Posted by DarkHorseKnight
on 07 April 2012 - 04:24 PM
#4927915 Starting in Python: best graphics module?
Posted by DarkHorseKnight
on 03 April 2012 - 10:33 AM
#4911063 Animation is a blight and I can't figure it out ! help :(
Posted by DarkHorseKnight
on 08 February 2012 - 03:08 PM
#4908948 Where to start? C++/SDL/OpenGL?
Posted by DarkHorseKnight
on 02 February 2012 - 07:17 PM
I was wrong on the WIN32 API and MSVC++ stuff tho so you have me there got a realization problem
#4908759 Where to start? C++/SDL/OpenGL?
Posted by DarkHorseKnight
on 02 February 2012 - 10:38 AM
#4908755 Where to start? C++/SDL/OpenGL?
Posted by DarkHorseKnight
on 02 February 2012 - 10:34 AM
There is other alternatives like using Win32 API ,QT Creator Kit ,freeGlut for Window Managements but I would personally guide you towards C++,SDL,OpenGL and to start you off in the right direction go for Lazy Foo Tutorials for SDL education and OpenGL your going to have to spam google and search through books and beg on irc if you want to learn anything its rather difficult otherwise for C++ learning watch thenewboston tutorials in C++
Hope this helps
for an IDE use Code::Blocks or Microsoft Visual Studio 2010 express free edition for C++
#4903376 Looking for a good language/API for website game/app.
Posted by DarkHorseKnight
on 16 January 2012 - 03:14 PM
the speeds on java are dam good but still not as good as C++ but its good anuff for what you want : )
and really javas your only choice that I know of unless you can embed C++ applications onto a website
could do it in flash : ) and ActionScript
download Adobe CS5 Flash and start coding in notepad++ http://notepad-plus-plus.org/
- Home
- » Viewing Profile: Reputation: DarkHorseKnight

Find content