should compile on windows now

This commit is contained in:
Jakob Fries 2008-02-02 11:08:31 +00:00
parent aaf75f5239
commit e2de77ea14
3 changed files with 7 additions and 22 deletions

View file

@ -17,6 +17,7 @@
/* compressed textures */
#define GL_COMPRESSED_RGB_ARB 0x84ED
#define GL_COMPRESSED_RGBA_ARB 0x84EE
#define GL_COMPRESSED_ALPHA_ARB 0x84E9
#define TEXTURE_MAX_ANISOTROPY_EXT 0x84FE

View file

@ -16,6 +16,10 @@ extern "C" {
#include "../g_version.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
enum
{
CONSOLE_CLOSED,
@ -28,7 +32,7 @@ static unsigned int console_input_len = 0;
static char console_input[256] = {0};
static int console_state = CONSOLE_CLOSED;
static float state_change_end = 0.0f;
static const float state_change_duration = 0.2f;
static const float state_change_duration = 0.1f;
static char backlog[256][256] = {{0}};
static int backlog_len;
@ -175,7 +179,7 @@ void console_toggle()
static float console_scale_func(float t)
{
//return t;
return cosf((1.0f-t)*M_PI*0.5f);
return sinf(acosf(1.0f-t));
}
void console_render()

View file

@ -557,8 +557,6 @@ static void menu2_render_background()
}
}
extern "C" void *gfx_font_set;
void render_loading(float percent)
{
// need up date this here to get correct
@ -1743,24 +1741,6 @@ int menu2_render()
RECT screen = *ui_screen();
gfx_mapscreen(screen.x, screen.y, screen.w, screen.h);
if (0)
{
gfx_clear(0.65f,0.78f,0.9f);
for (int i = 0; i < 24; i++)
{
float size = i * 0.5 + 8;
char temp[64];
sprintf(temp, "%f: Ingen tomte i jul", size);
gfx_text(0, 50, 10 + i*int(size), size, temp, -1);
gfx_text(gfx_font_set, 400, 10 + i*int(size), size, temp, -1);
}
return 0;
}
static bool first = true;
if(first)
{