b7456401e0
Added image scene to render an image in a scene. There is also now a testing image that is an uber meme. Currently the problem is that the spritebatch cannot use the offsetof macro because it is a templated class. Possible solutions to this are changing it to be specifyable or implemented per vertex type as the other batches have been.
20 lines
276 B
C++
20 lines
276 B
C++
#pragma once
|
|
|
|
#include "Camera.h"
|
|
|
|
namespace charcoal
|
|
{
|
|
namespace builtin
|
|
{
|
|
class WithCamera
|
|
{
|
|
protected:
|
|
void set_camera(Camera* camera) { m_p_camera = camera; }
|
|
|
|
Camera* get_camera() { return m_p_camera; }
|
|
|
|
private:
|
|
Camera* m_p_camera = nullptr;
|
|
};
|
|
}
|
|
} |