mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-26 06:50:37 +02:00
Samples working for Windows (Robert Bergkvist)
This commit is contained in:
parent
164ce12202
commit
3d587f6432
3 changed files with 50 additions and 0 deletions
42
progs/samples/Makefile.win
Normal file
42
progs/samples/Makefile.win
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# $Id: Makefile.win,v 1.1 2002/01/16 00:57:54 kschultz Exp $
|
||||
|
||||
# Mesa 3-D graphics library
|
||||
# Version: 3.5
|
||||
# Copyright (C) 1995-2001 Brian Paul
|
||||
|
||||
# Makefile for GLUT-based demo programs for Windows
|
||||
|
||||
!include <win32.mak>
|
||||
|
||||
##### MACROS #####
|
||||
|
||||
TOP = ..
|
||||
INCDIR = ..\include
|
||||
LIBDIR = ..\lib
|
||||
|
||||
PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \
|
||||
font line logo nurb oglinfo olympic overlay point prim quad select \
|
||||
shape sphere star stencil stretch texture tri wave
|
||||
|
||||
SRCS = \
|
||||
accum.c \
|
||||
bitmap1.c \
|
||||
bitmap2.c \
|
||||
blendeq.c \
|
||||
blendxor.c \
|
||||
copy.c \
|
||||
cursor.c depth.c eval.c fog.c \
|
||||
font.c line.c logo.c nurb.c olympic.c overlay.c point.c prim.c quad.c select.c \
|
||||
shape.c sphere.c star.c stencil.c stretch.c texture.c tri.c wave.c
|
||||
|
||||
!include "../mesawin32.mak"
|
||||
|
||||
##### TARGETS #####
|
||||
|
||||
clean::
|
||||
|
||||
clobber::
|
||||
|
||||
$(EXES) : $*.obj
|
||||
@echo $@
|
||||
$(link) -out:$@ $* /LIBPATH:$(LIBDIR) $(LIBS)
|
||||
|
|
@ -11,6 +11,10 @@
|
|||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#define GL_GLEXT_LEGACY
|
||||
#include <GL/glut.h>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,10 @@
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#define GL_GLEXT_LEGACY
|
||||
#include <GL/glut.h>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue