Tagged Questions
4
votes
1answer
307 views
How to use caching to increase render performance?
First of all I am going to cover the basic design of my 2d tile-based engine written with SDL in C++, then I will point out what I am up to and where I need some hints.
Concept of my engine
My ...
1
vote
2answers
129 views
How do I cap rendering of tiles in a 2D game with SDL?
I have some boilerplate code working, I basically have a tile based map composed of just 3 colors, and some walls and render with SDL. The tiles are in a bmp file, but each tile inside it corresponds ...
1
vote
3answers
272 views
Rendering multiline text with SDL_TTF
Can you use any function to render more than a line of text in a surface?
If you can't do this, what whould be the way to go?
I am doing the following: Create a surface (not sure if should be a ...
1
vote
1answer
184 views
Lost transparency in SDL surfaces drawn manually
I want to create SDL_Surface objects for each layer of my 2d tile-based map so that I have to render only one surface per layer rather than too many tiles. With normal tiles which do not have ...
0
votes
1answer
492 views
Will using OpenGL for rendering with SDL make my 2D game run smoother?
I've been working on a 2D game using SDL. I've noticed the objects look blurry and glitchy when they're moving, so I was thinking about using OpenGL to render the graphics. Would this help? What ...
0
votes
1answer
409 views
SDL and software/hardware rendering. How to go about it?
I know that SDL 1.2 does software rendering (CPU) and not hardware rendering (GPU). My question is, how do I use SDL but with hardware rendering? How do I not use its rendering API (software) and ...
-1
votes
2answers
185 views
FreeType2 Crash on FT_Init_FreeType
I'm currently trying to learn how to use the FreeType2 library for drawing fonts with OpenGL. However, when I start the program it immediately crashes with the following error: "(Can't correctly start ...