From b7b7334dbb7eb46147badc703160f2a409492c1e Mon Sep 17 00:00:00 2001 From: aap Date: Wed, 10 Mar 2021 01:13:17 +0100 Subject: [PATCH] added im3d example --- premake5.lua | 8 ++++++++ tools/im2d/main.cpp | 7 ------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/premake5.lua b/premake5.lua index fd10479..adc3894 100755 --- a/premake5.lua +++ b/premake5.lua @@ -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") diff --git a/tools/im2d/main.cpp b/tools/im2d/main.cpp index f36da51..f9ac539 100644 --- a/tools/im2d/main.cpp +++ b/tools/im2d/main.cpp @@ -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();