Files
amethyst/example/source/main.cpp
tobid7 078af99ae5 Upload all my tests
- Add Count<> to AssetManager
- Initialize pCode in Shader
- Rename linearAllocator to LinearAllocator
- Add Construct and destroy to linear allocator
- Add Shader unloader (fixes atexit crash i guess)
-
2025-11-30 21:57:01 +01:00

26 lines
419 B
C++
Executable File

#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();
}
Amy::C3D::Screen *Top;
};
int main() {
Example App;
App.Run();
return 0;
}