Initial commit

This commit is contained in:
2019-07-05 18:24:10 +02:00
commit de53477a49
216 changed files with 2569 additions and 0 deletions

41
AnimatedTexture.h Normal file
View File

@@ -0,0 +1,41 @@
/*
* AnimatedTexture.h
*
* Created on: Apr 12, 2019
* Author: dennisgunia
*/
#ifndef ANIMATEDTEXTURE_H_
#define ANIMATEDTEXTURE_H_
#include <SDL2/SDL.h>
#include <SDL2/SDL_mixer.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
#include <iostream>
#include <string>
#include <stdio.h>
#include <sstream>
typedef SDL_Texture* FramePointer;
class AnimatedTexture {
private:
bool animatedSequence;
int frames;
int frame;
FramePointer *tx_frames;
public:
AnimatedTexture( );
void setupAnimatedTexture( std::string file, int frames ,SDL_Renderer *render );
void doAnimationStep();
virtual ~AnimatedTexture();
int getOffset();
SDL_Texture *getTexture(int offest);
};
#endif /* ANIMATEDTEXTURE_H_ */