charcoal/Example/MyBuiltinImageScene.h

22 lines
456 B
C
Raw Normal View History

#pragma once
#include "ImageLoader.h"
#include "ImageScene.h"
#include "BuiltinCamera2D.h"
using namespace charcoal;
using namespace charcoal::builtin;
class MyBuiltinImageScene : public image::Scene
{
public:
MyBuiltinImageScene(Application& application);
void update(float delta_time, clock_t clock) override;
private:
image_loader::ImageRGBA m_image;
image::Renderable m_image_renderable;
builtin::Camera2D m_camera;
image::Batch& m_batch;
};