46 Topics

Member Avatar for
Member Avatar for Nether_1

Since OpenGL uses the strange system of 1s and 0s to represent location on the screen, I'm trying to figure out how to switch it to standard x, y coordinates like those that are used on a graph. And so far, my searches on the rest of the internet have …

Member Avatar for rproffitt
0
535
Member Avatar for Tycellent

Hey everyone, In addition to... Lazy Foo's Tutorial http://lazyfoo.net/tutorials/SDL/index.php "SDL Game Development" - Shaun Mitchell book are there any other recommended resources (does not have to be SDL) people could suggest? I've already created a console-based text adventure game and am really interested in expanding it into a text-adventure game …

Member Avatar for wafa_1
0
292
Member Avatar for Xecantur

Having a hard time trying to wrap my head around why my grid system fails, I'm assuming my train of thought is stuck at the moment(akin to writers block). My understanding of grids is while the current cell isn't the last one in the column/row(w/e is horizontal) /*do stuff*/ then …

Member Avatar for Xecantur
0
325
Member Avatar for moudy.mak

I need the way in SDL work with openGL for allow users input String by writing text .

Member Avatar for richieking
0
149
Member Avatar for moudy.mak

I have used sdl_ttf in opengl . but i have this error : error LNK1104: cannot open file 'SDL_ttf.lib' i already have tried to remove the "SDL_ttf.lib" , but it didn't useful. i have trid used : lazyfoo.net for setting up the opengl with sdl pls tell me what must …

Member Avatar for passion88
0
320
Member Avatar for Labdabeta

I quickly threw together a drawing program in SDL and I am having a couple of issues with lag. The program lags really hard when the size is larger than about 700x700 pixels, and I cannot find anything other than a couple of SDL_BlitSurface calls to the 'image' surface in …

Member Avatar for Labdabeta
0
204
Member Avatar for Lardmeister

Anybody out there that used Python on an Android system? Something like the subset on http://pygame.renpy.org/

Member Avatar for M.S.
0
217
Member Avatar for ysmtek

*Hello people of the DaniWebs! It's been a long time since I've been talking and asking here, under the name of **katmai539**. I've lost account information and also the email address linked to it. I haven't been active in the software development-branch for the past few years but recently I …

0
221
Member Avatar for Epicurus

Hi! The keypresses in my new project does not seem to be registered. I've never had this issue before and I don't think it is SDL:s fault this time. Here is the code in main: #include <cstdlib> #include <iostream> #include <SDL.h> #include "playertank.h" int main ( int argc, char** argv …

Member Avatar for BeauBeck
0
250
Member Avatar for Marcusflint

Hi, Im new to SDL, when i compile this example program i got these linker errors first defined here .drectve `/manifestdependency:"type='win32' name='Microsoft.VC90.CRT' version='9.0.21022.8' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'" /DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized [Linker error] undefined reference to `__security_cookie' [Linker error] undefined reference to `_alloca_probe_16' [Linker error] undefined reference to `@__security_check_cookie@4' [Linker error] undefined …

0
128
Member Avatar for nuclear

So I was trying out SDL_gfx lib and tryed using the rotozoomSurface() [Click Here](http://www.ferzkopp.net/Software/SDL_gfx-2.0/Docs/html/_s_d_l__rotozoom_8h.html#a3cb0c11d5edc929579c807dc7612348c) which should've rotated my surface at runtime, but it seems that whenever I do that my surface turns invisible. It doesn't matter if I predefine the rotation or use it at runtime, the same happens, I've …

Member Avatar for nuclear
0
232
Member Avatar for TotalZombie

So, I'm playing around with SDL and I've come across a bit of a bump. I have one image and I am trying to "free" that image to put on another one. Here is what my code looks like.. [CODE] // I did get a good section of this code …

Member Avatar for rfrapp
0
213
Member Avatar for rfrapp

Hello, I'm creating a game using SDL, and what I'd like to happen is: if the character jumps on a button, then it'll disappear. However, I cannot find a way of accomplishing this, as all the SDL functions I know of start at runtime and cannot be changed. If I'm …

-1
104
Member Avatar for ChrisMackle

So im learning SDL to get an idea on game programming for my career as a game developer. I havent done any learning for a couple of months after getting stuck on this problem. So im using a lazyfoo.net tutorial engine. that moves a player and has a collision with …

Member Avatar for sfuo
0
498
Member Avatar for nuclear

I'm trying to use Box2D lib with SDL lib. NOTE that I only get the errors below after I link in SDL too. I think i link everything accordingly but in the end when I write up some code i get errors like: 1>------ Build started: Project: box2d test2, Configuration: …

Member Avatar for Ab000dy_85
0
534
Member Avatar for meetjatin88

Hi All, I have a doubt regarding SDL programming. Can some one please help me how can i subdivide a Image lets say into 4 parts and then store them in SDL_Surface array. I intend to animate later using these subdivided images by using SDL_BlitSurface function. I am new to …

Member Avatar for rosiebell
0
123
Member Avatar for dakerao

Hello I'm trying to get my game to update the screen and draw graphics on its own I kind of made it happen but it still flickers which you can see in this video I made just too showcase this problem [URL="http://www.youtube.com/watch?v=9j_ZDHr1x_8"]http://www.youtube.com/watch?v=9j_ZDHr1x_8[/URL] Now I really don't know what is causing …

Member Avatar for dakerao
0
192
Member Avatar for c++_fem

Hi, I'm trying to write text using SDL_ttf I've set up everything according to this tutorial on lazyfoo ([url]http://lazyfoo.net/SDL_tutorials/lesson03/windows/msvsnet2010e/index.php[/url]) but when I compile my program I keep getting this error: fatal error LNK1104: cannot open file 'SDL_ttf.libkernel32.lib' Did anyone have the same problem? I don't know what I'm doing wrong. …

0
138
Member Avatar for d3m0n

Recently I started working with game development and I came with a problem, when I started working with this SDL_image.h library and I can not understand why the program, does not display the image, screen just flashes and disappears, I can't figure out what's the problem. I am using Microsoft …

0
103
Member Avatar for dakerao

How do I stop this from happening in SDL [URL="http://i.imgur.com/D6M2X.png"]http://i.imgur.com/D6M2X.png[/URL] where the background just stops. I want it to carry on too the left for ever or atleast the width of the image on the SDL_Surface here is a video to showcase the problem [URL="http://www.youtube.com/watch?v=KROV7eq8RLo"]http://www.youtube.com/watch?v=KROV7eq8RLo[/URL] and here is the code …

Member Avatar for sfuo
0
147
Member Avatar for Goshutu

Hi, DaniWeb forum members! I am an above-amateur programmer and this is my first more complex SDL-based program. I am trying to make the menu of a game, but SDL cannot capture the key presses when a single key was pressed. I use only UP and DOWN arrows, in this …

Member Avatar for Goshutu
0
728
Member Avatar for nuclear

Theres this thing that i dont fully understand. Im using this tutorial: [url]http://lazyfoo.net/SDL_tutorials/lesson08/index.php[/url] and i in here we first set up some surfaces with text and then asign their value to the message and then for some reason we have to reset the message value to 0 in order for …

Member Avatar for raptr_dflo
0
482
Member Avatar for Jungletoe

Ok, I found this code after searching for days, and to my delight it actually worked. It loads a TGA file into the memory... but I have no idea about how to load it into an OpenGL texture that I can use to texture a cube. I have literally spent …

Member Avatar for myk45
0
1K
Member Avatar for nuclear

I was watching a tutorial that says that we first need to check if any direction key was pressed, and only then we check which key was pressed, like this: [CODE]while( running == true ) { while( SDL_PollEvent(&event) ) { if ( event.type == SDL_KEYDOWN ) //checking if any key …

Member Avatar for gusano79
0
279
Member Avatar for nuclear

So i just started learning SDL and came across "Event driven programming", just wanted to be sure if i understood the tutorial correcly. So lets say by adding: [CODE]SDL_Event event;[/CODE] i add lets say a container that keeps track of every event i do? After that i start using: [CODE]while …

Member Avatar for nuclear
0
278
Member Avatar for nuclear

Just recently started learning SDL and have this problem, this program should properly display my background and message on the screen, but instead its just a black screen. Did the Blit, did the Flip, maybe im missing something? Heres the code: P.S i know i might forgot to add some …

Member Avatar for nuclear
0
173
Member Avatar for Labdabeta

I am looking to make a 3D game, I have made plenty of fun ones in 2D using SDL but have yet to attempt a 3D (fps style) game. Does anybody know either a way to do 3D with SDL, or some other similar or easy to use library that …

Member Avatar for dvidunis
0
245
Member Avatar for Labdabeta

How can you play videos in C++, I am quite willing to use more than less any headers, I basically need a code that will work like this: [CODE]#include "PlayVideos.h" int main(int argc, char *argv[]) { SDL_Surface *screen=SDL_SetVideoMode(WINWIDTH,WINHEIGHT,WINBPP,SDL_SWSURFACE); ShowVideo("MyVideo.avi",0,0,screen);//play a video at position 0,0 and apply it to the screen …

Member Avatar for mike_2000_17
0
182
Member Avatar for epicbeast9022

#include "includes.h" #include "constants.h" #include "functions.h" int pscore=0,cscore=0,ppaddle=185,cpaddle=185,ballSpeed = 0,cpuPadSpd = 0,frame = 0; SDL_Surface *screen=NULL,*secondary=NULL,*playerscore=NULL,*cpuscore=NULL,*cpuwin=NULL,*playerwin=NULL; bool gameEnded = false,selectedDiff=false; TTF_Font *font,*humungo; SDL_Event e; //PongBall ball; void cleanup() { SDL_Quit(); SDL_EnableUNICODE(0); exit(0); } bool init() { if (SDL_Init(SDL_INIT_EVERYTHING) == -1) return false; if (TTF_Init() == -1) return false; screen = …

Member Avatar for rubberman
0
213
Member Avatar for epicbeast9022

Hi, I'm trying to make a pong game on Xcode 3.2 with SDL but nothing displays, just a black window. Codes: [CODE]#include "includes.h" #include "constants.h" #include "functions.h" int pscore=0,cscore=0,ppaddle=185,cpaddle=185,ballSpeed = 0,cpuPadSpd = 0,frame = 0; SDL_Surface *screen=NULL,*secondary=NULL,*playerscore=NULL,*cpuscore=NULL,*cpuwin=NULL,*playerwin=NULL; bool gameEnded = false,selectedDiff=false; TTF_Font *font,*humungo; SDL_Event e; //PongBall ball; void cleanup() { …

0
120

The End.