49 lines
960 B
C++
49 lines
960 B
C++
#pragma once
|
|
|
|
#include <charcoal/Poseable.h>
|
|
#include <charcoal/Scene.h>
|
|
#include <charcoal/ImageLoader.h>
|
|
#include <charcoal/ImageFont.h>
|
|
#include <charcoal-builtin/BuiltinCamera2D.h>
|
|
#include <charcoal-builtin/TexturedPipeline.h>
|
|
#include <charcoal-builtin/TextPipeline.h>
|
|
|
|
using namespace charcoal;
|
|
using namespace charcoal::builtin;
|
|
|
|
// TODO: Test out the ImageFont image generation
|
|
|
|
class MyTextTestScene : public Scene
|
|
{
|
|
public:
|
|
MyTextTestScene(Application& application);
|
|
|
|
void init() override;
|
|
|
|
void use() override {}
|
|
|
|
void unuse() override {}
|
|
|
|
void update(float delta_time, clock_t clock) override;
|
|
|
|
void prerender() override;
|
|
|
|
void render() override;
|
|
|
|
private:
|
|
image_loader::ImageRGBA m_font_image;
|
|
|
|
ImageFont m_font;
|
|
|
|
image_loader::ImageRGBA m_text_image;
|
|
|
|
textured::Renderable m_text;
|
|
builtin::Camera2D m_camera;
|
|
textured::Batch m_text_batch;
|
|
|
|
textured::Pipeline m_pipeline;
|
|
|
|
Poseable m_text_pose;
|
|
|
|
text::Pipeline m_text_pipeline;
|
|
}; |