29 #include "../../idlib/precompiled.h"
34 #define MAX_POINTFILE 8192
36 static int s_num_points, s_check_point;
44 strcat (name,
".lin");
54 if (s_check_point >= s_num_points-2)
75 if ( s_check_point == 0)
99 strcat (name,
".lin");
101 f = fopen (name,
"r");
107 if (!g_qeglobals.d_pointfile_display_list)
108 g_qeglobals.d_pointfile_display_list =
qglGenLists(1);
111 qglNewList (g_qeglobals.d_pointfile_display_list, GL_COMPILE);
119 if (fscanf (f,
"%f %f %f\n", &v[0], &v[1], &v[2]) != 3)
146 for ( i = 0; i < s_num_points; i++ )
156 if (!g_qeglobals.d_pointfile_display_list)
160 g_qeglobals.d_pointfile_display_list = 0;
CMainFrame * g_pParentWnd
void WINAPI Sys_UpdateWindows(int nBits)
void Pointfile_Next(void)
const float * ToFloatPtr(void) const
#define VectorSubtract(a, b, c)
void WINAPI Pointfile_Check(void)
void Sys_Status(const char *psz, int part)
void Pointfile_Draw(void)
void Pointfile_Clear(void)
virtual void Printf(const char *fmt,...) id_attribute((format(printf
void Pointfile_Prev(void)
void StripExtension(char *path)
void Pointfile_Delete(void)