29 #include "../../../idlib/precompiled.h"
68 gluPerspective (90, 1, 2, 16384);
69 gluLookAt (mx, my, draw_maxs[2] + g/2, mx , my, draw_maxs[2], 0, 1, 0);
103 void Draw_SetRed (
void)
111 void Draw_SetGrey (
void)
119 void Draw_SetBlack (
void)
198 #define GLSERV_PORT 25001
206 WORD wVersionRequested;
214 wVersionRequested = MAKEWORD(1, 1);
216 r = WSAStartup (MAKEWORD(1, 1), &winsockdata);
225 draw_socket = socket (PF_INET, SOCK_STREAM, IPPROTO_TCP);
226 if (draw_socket == -1)
230 address.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
231 address.sin_port = GLSERV_PORT;
232 r = connect (draw_socket, (
struct sockaddr *)&
address,
sizeof(
address));
235 closesocket (draw_socket);
249 ((
int *)buf)[1] = code;
251 for (j=0 ; j<3 ; j++)
252 ((
float *)buf)[2+i*3+j] = (*w)[
i][
j];
254 send (draw_socket, (
const char *)buf, w->
GetNumPoints() * 12 + 8, 0);
269 closesocket (draw_socket);
void glClear(GLbitfield mask)
void DrawLine(idVec3 v1, idVec3 v2, int color)
const float * ToFloatPtr(void) const
void glVertex2f(GLfloat x, GLfloat y)
void DrawWinding(const idWinding *w)
void Draw_ClearWindow(void)
void GLS_BeginScene(void)
void GLS_Triangle(const mapTri_t *tri, int code)
void glBegin(GLenum mode)
GLfloat GLfloat GLfloat v2
void glDisable(GLenum cap)
int GetNumPoints(void) const
GLubyte GLubyte GLubyte GLubyte w
void DrawAuxWinding(const idWinding *w)
void glVertex3f(GLfloat x, GLfloat y, GLfloat z)
void glBlendFunc(GLenum sfactor, GLenum dfactor)
void glLoadIdentity(void)
GLdouble GLdouble GLdouble r
void glColor3f(GLfloat red, GLfloat green, GLfloat blue)
void GLS_Winding(const idWinding *w, int code)
void glVertex3fv(const GLfloat *v)
void glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
void glOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
dmapGlobals_t dmapGlobals
virtual void Error(const char *fmt,...) id_attribute((format(printf
void glMatrixMode(GLenum mode)
void glPolygonMode(GLenum face, GLenum mode)
void glDrawBuffer(GLenum mode)