Fix some issues

This commit is contained in:
2025-12-08 22:20:33 +01:00
parent d85610a0bd
commit 38a1cad76a
4 changed files with 5 additions and 4 deletions

View File

@@ -9,6 +9,7 @@
#include <amethyst/iron.hpp>
#include <amethyst/renderer.hpp>
#include <amethyst/texture.hpp>
#include <amethyst/utils.hpp>
namespace Amy {
void RegisterCxxExceptionHandler();
@@ -16,5 +17,4 @@ void RegisterCxxExceptionHandler();
using Iron = Amy::Iron;
using C3D = Amy::C3D;
using GTrace = Amy::GTrace;
using Utils = Amy::Utils;
using GTrace = Amy::GTrace;

View File

@@ -30,6 +30,7 @@ class C3D {
ivec2 Size() const { return ivec2(pWidth, pHeight); }
void Clear() { C3D_RenderTargetClear(pTarget, C3D_CLEAR_ALL, 0, 0); }
void Use() { C3D_FrameDrawOn(pTarget); }
C3D_RenderTarget* Ptr() { return pTarget; }
private:
C3D_RenderTarget* pTarget = nullptr;