Files
amethyst/example/source/main.cpp

26 lines
419 B
C++
Raw Normal View History

2025-11-19 22:20:27 +01:00
#include <amethyst.hpp>
class Example : public Amy::App {
public:
Example() {
Amy::Ctr::Init();
Amy::C3D::Init();
Top = Amy::C3D::CreateScreen(GFX_TOP);
}
~Example() { delete Top; }
void Main() {
Amy::C3D::StartFrame();
Top->Clear();
Top->Use();
Amy::C3D::EndFrame();
2025-11-19 22:20:27 +01:00
}
Amy::C3D::Screen *Top;
};
int main() {
Example App;
App.Run();
2025-11-19 22:20:27 +01:00
return 0;
}