- 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) -
26 lines
419 B
C++
Executable File
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;
|
|
} |