瀏覽代碼

res tweak for web usage.

undefined
Benjamin ‘Touky’ Huet Sam Hocevar <sam@hocevar.net> 11 年之前
父節點
當前提交
568acece6e
共有 1 個檔案被更改,包括 8 行新增3 行删除
  1. +8
    -3
      test/meshviewer.cpp

+ 8
- 3
test/meshviewer.cpp 查看文件

@@ -24,9 +24,17 @@ using namespace lol;

static int const TEXTURE_WIDTH = 256;

#define NO_NACL_EM (!__native_client__ && !EMSCRIPTEN)
#define NACL_EM (__native_client__ || EMSCRIPTEN)

#define R_M 1.f
#if NACL_EM
#define DEFAULT_WIDTH (770.f * R_M)
#define DEFAULT_HEIGHT (200.f * R_M)
#else
#define DEFAULT_WIDTH (1200.f * R_M)
#define DEFAULT_HEIGHT (400.f * R_M)
#endif //NACL_EM
#define WIDTH ((float)Video::GetSize().x)
#define HEIGHT ((float)Video::GetSize().y)
#define SCREEN_W (10.f / WIDTH)
@@ -48,9 +56,6 @@ static int const TEXTURE_WIDTH = 256;

#define WITH_TEXTURE 0

#define NO_NACL_EM (!__native_client__ && !EMSCRIPTEN)
#define NACL_EM (__native_client__ || EMSCRIPTEN)

#define HAS_KBOARD (m_input_usage & (1<<IPT_MV_KBOARD))
#define HAS_MOUSE (m_input_usage & (1<<IPT_MV_MOUSE))



Loading…
取消
儲存