You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
C
50 lines
1.2 KiB
C
|
4 years ago
|
/******************************************************************************
|
||
|
4 years ago
|
* File - simple_render_scene.h
|
||
|
4 years ago
|
* Author - Joey Pollack
|
||
|
|
* Date - 2021/10/27 (y/m/d)
|
||
|
|
* Mod Date - 2021/10/27 (y/m/d)
|
||
|
|
* Description - Displays a simple scene that tests basic render features.
|
||
|
|
******************************************************************************/
|
||
|
|
|
||
|
|
#ifndef SIMPLE_RENDER_SCENE_H_
|
||
|
|
#define SIMPLE_RENDER_SCENE_H_
|
||
|
|
|
||
|
4 years ago
|
#include "base_scene.h"
|
||
|
4 years ago
|
#include <core/types.h>
|
||
|
4 years ago
|
#include <string>
|
||
|
4 years ago
|
|
||
|
|
namespace lunarium
|
||
|
|
{
|
||
|
|
class Image;
|
||
|
|
class SimpleRenderScene : public BaseScene
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
SimpleRenderScene(uint32_t logCat);
|
||
|
4 years ago
|
~SimpleRenderScene();
|
||
|
4 years ago
|
virtual void OnLoad();
|
||
|
|
virtual void OnTick(double delta);
|
||
|
|
virtual void OnRender(IGraphics* g);
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
int mTextBoxWidth;
|
||
|
|
Sizei mImageSize;
|
||
|
|
Image* mpRenderedImage;
|
||
|
4 years ago
|
Image* mpTestImageLoad;
|
||
|
4 years ago
|
int mFrameBufferOne;
|
||
|
|
int mFrameBufferTwo;
|
||
|
4 years ago
|
float angle;
|
||
|
4 years ago
|
float box_angle;
|
||
|
4 years ago
|
|
||
|
4 years ago
|
float mSrcWidth;
|
||
|
|
float mSrcHeight;
|
||
|
|
|
||
|
4 years ago
|
struct GridTestObj
|
||
|
|
{
|
||
|
|
int X;
|
||
|
|
std::string msg;
|
||
|
|
};
|
||
|
4 years ago
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
#endif // SIMPLE_RENDER_SCENE_H_
|