mirror of https://github.com/aap/librw.git
added im3d example
This commit is contained in:
parent
136101bf10
commit
b7b7334dbb
|
@ -233,6 +233,14 @@ project "im2d"
|
||||||
removeplatforms { "*null" }
|
removeplatforms { "*null" }
|
||||||
removeplatforms { "ps2" }
|
removeplatforms { "ps2" }
|
||||||
|
|
||||||
|
project "im3d"
|
||||||
|
kind "WindowedApp"
|
||||||
|
characterset ("MBCS")
|
||||||
|
skeltool("im3d")
|
||||||
|
flags { "WinMain" }
|
||||||
|
removeplatforms { "*null" }
|
||||||
|
removeplatforms { "ps2" }
|
||||||
|
|
||||||
project "ska2anm"
|
project "ska2anm"
|
||||||
kind "ConsoleApp"
|
kind "ConsoleApp"
|
||||||
characterset ("MBCS")
|
characterset ("MBCS")
|
||||||
|
|
|
@ -4,9 +4,7 @@
|
||||||
|
|
||||||
#include "im2d.h"
|
#include "im2d.h"
|
||||||
|
|
||||||
rw::V3d zero = { 0.0f, 0.0f, 0.0f };
|
|
||||||
rw::EngineOpenParams engineOpenParams;
|
rw::EngineOpenParams engineOpenParams;
|
||||||
float FOV = 70.0f;
|
|
||||||
|
|
||||||
rw::RGBA ForegroundColor = { 200, 200, 200, 255 };
|
rw::RGBA ForegroundColor = { 200, 200, 200, 255 };
|
||||||
rw::RGBA BackgroundColor = { 64, 64, 64, 0 };
|
rw::RGBA BackgroundColor = { 64, 64, 64, 0 };
|
||||||
|
@ -46,14 +44,9 @@ Initialize3D(void)
|
||||||
Charset = rw::Charset::create(&ForegroundColor, &BackgroundColor);
|
Charset = rw::Charset::create(&ForegroundColor, &BackgroundColor);
|
||||||
|
|
||||||
Camera = CreateCamera();
|
Camera = CreateCamera();
|
||||||
//UpdateSubRasters(Camera, sk::globals.width, sk::globals.height);
|
|
||||||
|
|
||||||
Im2DInitialize(Camera);
|
Im2DInitialize(Camera);
|
||||||
|
|
||||||
// rw::SetRenderState(rw::CULLMODE, rw::CULLBACK);
|
|
||||||
// rw::SetRenderState(rw::ZTESTENABLE, 1);
|
|
||||||
// rw::SetRenderState(rw::ZWRITEENABLE, 1);
|
|
||||||
|
|
||||||
ImGui_ImplRW_Init();
|
ImGui_ImplRW_Init();
|
||||||
ImGui::StyleColorsClassic();
|
ImGui::StyleColorsClassic();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue