sdl-image Questions

6

Solved

I'm looking for the simplest way to compile a c++ program using SDL2 and SDL_image with cmake. Here is my best attempt, after hours of searching: CMakeLists.txt project(shooter-cmake2) cmake_minim...
Armillia asked 24/5, 2014 at 23:2

6

Solved

Whenever I try to load a PNG using SDL_Image's IMG_Load function it gives the error Failed loading libpng16-16.dll:. I have all the right dll's in the right path and I can use other parts of SDL_Im...
Lampoon asked 31/1, 2014 at 5:21

4

Solved

I am trying to compile the following code which has the headers: #include <SDL2/SDL.h> #include <SDL2_image/SDL_image.h> However after running the following makefile: g++ -std=c++11...
Bankhead asked 26/10, 2015 at 22:48

3

I'm learning SDL through Lazy Foo's tutorial, but I can't proceed further as IMG_Load doesn't seem to work. I tried setting it up like he says, but it just doesn't work. I put all the include files...
Jit asked 17/7, 2013 at 14:10

2

Solved

I'm trying to draw a png image to a window using the SDL_image extension, but it gives me an "Entry Point Not Found" error I'm using SDL (2.0.9) and SDL_Image (2.0.5) I've copied the following bin...
Courthouse asked 3/7, 2019 at 0:36

1

Solved

I'm trying to save a screen region from opengl into a bitmap. I've tried using FreeImage, and SDL_Image, and they both require me to swap red and blue channels. Of course, that brings me to suspect...
Deron asked 26/6, 2016 at 11:31

3

Solved

I'm trying to make an application with SDL and I would like to add an icon on my window but when I compile I get this error : error: ‘IMG_Load’ was not declared in this scope SDL_Surface * icon_s...
Dwaindwaine asked 4/2, 2016 at 19:40

5

Solved

I have been trying to produce a statically linked "single binary" version of my game for windows. I want to link with sdl, sdl_image and sdl_mixer which in turn pull in a few support libraries. Unf...
Kerouac asked 22/9, 2008 at 16:13

1

I want to set up SDL_Image, SDL_Mixer and SDL_TTF, but it doesn't seem to work. I'm following Lazy Foo's SDL tutorial and tried setting it up like he says, but it just doesn't work. I put all the i...
Palaeography asked 16/7, 2013 at 18:36

1

Solved

I am making a SDL project in Xcode and I have a folder called resources where my images are stored. For my SDL application to access these images with SDL_LoadBMP the resources folder needs to be i...
Paola asked 16/5, 2013 at 12:51

1

Solved

I'm currently trying to make a simple game with SDL and Box2D. Unfortunately, the code I added to make the character shoot proyectiles is so buggy I can't even begin to count the errors. To deal wi...
Sims asked 29/7, 2011 at 16:34

2

Solved

I am using IMG_Load() to load png file, but it simply not working. loadedImage = IMG_Load(filename.c_str()); after this sentence, loadedImage is still NULL,not error happened. PS:I am using VS C++2...
Cottony asked 17/10, 2010 at 1:7

2

Solved

I'm storing an object (TTF_Font) in a shared_ptr that is provided to me from a third-party API. I cannot use new or delete on the object, so the shared_ptr is also provided a "freeing" functor. //...
Tallia asked 1/10, 2008 at 5:49
1

© 2022 - 2025 — McMap. All rights reserved.