added im3d example

This commit is contained in:
aap 2021-03-10 01:13:17 +01:00
parent 136101bf10
commit b7b7334dbb
2 changed files with 8 additions and 7 deletions

View File

@ -233,6 +233,14 @@ project "im2d"
removeplatforms { "*null" }
removeplatforms { "ps2" }
project "im3d"
kind "WindowedApp"
characterset ("MBCS")
skeltool("im3d")
flags { "WinMain" }
removeplatforms { "*null" }
removeplatforms { "ps2" }
project "ska2anm"
kind "ConsoleApp"
characterset ("MBCS")

View File

@ -4,9 +4,7 @@
#include "im2d.h"
rw::V3d zero = { 0.0f, 0.0f, 0.0f };
rw::EngineOpenParams engineOpenParams;
float FOV = 70.0f;
rw::RGBA ForegroundColor = { 200, 200, 200, 255 };
rw::RGBA BackgroundColor = { 64, 64, 64, 0 };
@ -46,14 +44,9 @@ Initialize3D(void)
Charset = rw::Charset::create(&ForegroundColor, &BackgroundColor);
Camera = CreateCamera();
//UpdateSubRasters(Camera, sk::globals.width, sk::globals.height);
Im2DInitialize(Camera);
// rw::SetRenderState(rw::CULLMODE, rw::CULLBACK);
// rw::SetRenderState(rw::ZTESTENABLE, 1);
// rw::SetRenderState(rw::ZWRITEENABLE, 1);
ImGui_ImplRW_Init();
ImGui::StyleColorsClassic();