mirror of
https://github.com/Relintai/programming_tutorials.git
synced 2025-05-11 22:52:11 +02:00
37 lines
555 B
C++
37 lines
555 B
C++
#ifndef MAIN_SCENE_H
|
|
#define MAIN_SCENE_H
|
|
|
|
#include "scene.h"
|
|
|
|
#include "image.h"
|
|
#include "texture.h"
|
|
#include "sprite.h"
|
|
#include "camera.h"
|
|
#include "button.h"
|
|
|
|
class MainScene : public Scene {
|
|
public:
|
|
void event(const SDL_Event &ev);
|
|
void update(float delta);
|
|
void render();
|
|
|
|
//ver a
|
|
static void on_first_button_clicked();
|
|
|
|
//ver b
|
|
static void on_first_button_clicked_member(void* cls);
|
|
void member_print();
|
|
|
|
MainScene();
|
|
~MainScene();
|
|
|
|
Camera *_camera;
|
|
Image *_image;
|
|
Texture *_texture;
|
|
|
|
Button *b1;
|
|
Button *b2;
|
|
Button *b3;
|
|
};
|
|
|
|
#endif |