Mac SDL2 [message #1821589] |
Sun, 16 February 2020 15:06 |
Eclipse User |
|
|
|
Hello,
surely a configuration problem, but I'm lost ..
I have this message;
../source/main.c:15:10: fatal error: 'SDL2_ttf.framework/Headers/SDL_ttf.h' file not found
#include <SDL2_ttf.framework<U+2069>/Headers/SDL_ttf.h>
#include <SDL2/SDL.h>
#include <stdlib.h>
#include <stdio.h>
#include <OpenGL/gl3.h>
#include <SDL2_image.framework/Headers/SDL_image.h>
#include <SDL2_ttf.framework/Headers/SDL_ttf.h>
int main(int argc, char** argv)
{
/*SDL_Surface * ws = NULL;*/
TTF_Font *fonts;
SDL_Surface * is = NULL,*texte = NULL;
SDL_DisplayMode dpm;
SDL_GetDesktopDisplayMode(0, &dpm);
SDL_Renderer *renderer = NULL;
SDL_Color ct ={ 255, 255, 255, 255 };
SDL_Rect pt;
int quit = 0;
TTF_Init();
if (TTF_Init() != 0){
SDL_Quit();
return 1;
}
fonts = TTF_OpenFont("Arial.ttf",15);
SDL_Event event;IMG_Init(IMG_INIT_PNG);


|
|
|
Powered by
FUDForum. Page generated in 0.08477 seconds