importation des models
This commit is contained in:
1 parent
82385c833e
commit
2a4f53984c
2 files changed
+90
No files matched your search
@@ -0,0 +1,52 @@
|
||||
// SDL2 Demo by aurelien.esnard@u-bordeaux.fr
|
||||
|
||||
#include "model.h"
|
||||
#include <SDL.h>
|
||||
#include <SDL_image.h> // required to load transparent texture from PNG
|
||||
#include <SDL_ttf.h> // required to use TTF fonts
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/* **************************************************************** */
|
||||
|
||||
struct Env_t {
|
||||
/* PUT YOUR VARIABLES HERE */
|
||||
};
|
||||
|
||||
/* **************************************************************** */
|
||||
|
||||
Env *init(SDL_Window *win, SDL_Renderer *ren, int argc, char *argv[]) {
|
||||
Env *env = malloc(sizeof(struct Env_t));
|
||||
|
||||
/* PUT YOUR CODE HERE TO INIT TEXTURES, ... */
|
||||
|
||||
return env;
|
||||
}
|
||||
|
||||
/* **************************************************************** */
|
||||
|
||||
void render(SDL_Window *win, SDL_Renderer *ren, Env *env) { /* PUT YOUR CODE HERE TO RENDER TEXTURES, ... */
|
||||
}
|
||||
|
||||
/* **************************************************************** */
|
||||
|
||||
bool process(SDL_Window *win, SDL_Renderer *ren, Env *env, SDL_Event *e) {
|
||||
if (e->type == SDL_QUIT) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/* PUT YOUR CODE HERE TO PROCESS EVENTS */
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/* **************************************************************** */
|
||||
|
||||
void clean(SDL_Window *win, SDL_Renderer *ren, Env *env) {
|
||||
/* PUT YOUR CODE HERE TO CLEAN MEMORY */
|
||||
|
||||
free(env);
|
||||
}
|
||||
|
||||
/* **************************************************************** */
|
||||
Reference in new issue
Block a user