Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 185575 | Differences between
and this patch

Collapse All | Expand All

(-)gr_hi/import/opengl.d (-8 / +2 lines)
Lines 1-10 Link Here
1
version (Win32) {
2
	private import std.c.windows.windows;
3
	extern(Windows):
4
}
5
version (linux) {
6
	extern(C):
1
	extern(C):
7
}
8
2
9
alias uint GLenum;
3
alias uint GLenum;
10
alias ubyte GLboolean;
4
alias ubyte GLboolean;
Lines 1116-1122 Link Here
1116
/*************************************************************/
1110
/*************************************************************/
1117
1111
1118
void /*APIENTRY*/glAccum (GLenum op, GLfloat value);
1112
void /*APIENTRY*/glAccum (GLenum op, GLfloat value);
1119
void /*APIENTRY*/glAlphaFunc (GLenum func, GLclampf ref);
1113
void /*APIENTRY*/glAlphaFunc (GLenum func, GLclampf);
1120
GLboolean /*APIENTRY*/glAreTexturesResident (GLsizei n, GLuint *textures, GLboolean *residences);
1114
GLboolean /*APIENTRY*/glAreTexturesResident (GLsizei n, GLuint *textures, GLboolean *residences);
1121
void /*APIENTRY*/glArrayElement (GLint i);
1115
void /*APIENTRY*/glArrayElement (GLint i);
1122
void /*APIENTRY*/glBegin (GLenum mode);
1116
void /*APIENTRY*/glBegin (GLenum mode);
Lines 1369-1375 Link Here
1369
void /*APIENTRY*/glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
1363
void /*APIENTRY*/glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
1370
void /*APIENTRY*/glSelectBuffer (GLsizei size, GLuint *buffer);
1364
void /*APIENTRY*/glSelectBuffer (GLsizei size, GLuint *buffer);
1371
void /*APIENTRY*/glShadeModel (GLenum mode);
1365
void /*APIENTRY*/glShadeModel (GLenum mode);
1372
void /*APIENTRY*/glStencilFunc (GLenum func, GLint ref, GLuint mask);
1366
void /*APIENTRY*/glStencilFunc (GLenum func, GLint, GLuint mask);
1373
void /*APIENTRY*/glStencilMask (GLuint mask);
1367
void /*APIENTRY*/glStencilMask (GLuint mask);
1374
void /*APIENTRY*/glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
1368
void /*APIENTRY*/glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
1375
void /*APIENTRY*/glTexCoord1d (GLdouble s);
1369
void /*APIENTRY*/glTexCoord1d (GLdouble s);
(-)gr_hi/import/openglu.d (-5 lines)
Lines 1-11 Link Here
1
import opengl;
1
import opengl;
2
2
3
version (Win32) {
4
	extern(Windows):
5
}
6
version (linux) {
7
	extern(C):
3
	extern(C):
8
}
9
4
10
GLubyte* gluErrorString (
5
GLubyte* gluErrorString (
11
    GLenum   errCode);
6
    GLenum   errCode);
(-)gr_hi/import/SDL.d (-12 / +22 lines)
Lines 20-37 Link Here
20
    slouken@devolution.com
20
    slouken@devolution.com
21
*/
21
*/
22
22
23
import SDL_types;
23
public import SDL_Keysym;
24
import SDL_getenv;
24
public import SDL_Version;
25
import SDL_error;
25
public import SDL_active;
26
import SDL_rwops;
26
public import SDL_audio;
27
import SDL_timer;
27
public import SDL_byteorder;
28
import SDL_audio;
28
public import SDL_cdrom;
29
import SDL_cdrom;
29
public import SDL_copying;
30
import SDL_joystick;
30
public import SDL_endian;
31
import SDL_events;
31
public import SDL_error;
32
import SDL_video;
32
public import SDL_events;
33
import SDL_byteorder;
33
public import SDL_getenv;
34
import SDL_Version;
34
public import SDL_joystick;
35
public import SDL_keyboard;
36
public import SDL_mouse;
37
public import SDL_mutex;
38
public import SDL_quit;
39
public import SDL_rwops;
40
public import SDL_syswm;
41
public import SDL_thread;
42
public import SDL_timer;
43
public import SDL_types;
44
public import SDL_video;
35
45
36
extern(C):
46
extern(C):
37
47
(-)gr_hi/Makefile (+25 lines)
Line 0 Link Here
1
DC=gdmd
2
#DC=gdc
3
ifeq ($(DC), gdmd)
4
DFLAGS=-O -d -release -Iimport -Isrc
5
#DFLAGS=-g -debug -Iimport -Isrc
6
DOUT=-of
7
else
8
DFLAGS=-O -frelease -Iimport -Isrc
9
#DFLAGS=-g -fdebug -Iimport -Isrc
10
DOUT=-o
11
endif
12
13
DSRC=$(shell find src/abagames -name "*.d")
14
SOURCES=$(DSRC) import/SDL_video.d import/SDL_mixer.d
15
OBJS=$(SOURCES:.d=.o)
16
EXE=gunroarhi
17
18
all: $(EXE)
19
20
$(EXE): $(OBJS)
21
	gcc -o $@ $(OBJS) -lgphobos -lpthread -lm -lSDL -lGL -lGLU -lSDL_mixer
22
23
$(OBJS): %.o: %.d
24
	$(DC) -c $(DOUT)$@ $(DFLAGS) $<
25
(-)gr_hi/src/abagames/util/sdl/luminous.d (-1 / +1 lines)
Lines 34-40 Link Here
34
  private void makeLuminousTexture() {
34
  private void makeLuminousTexture() {
35
    uint *data = td;
35
    uint *data = td;
36
    int i;
36
    int i;
37
    memset(data, 0, luminousTextureWidth * luminousTextureHeight * 4 * uint.sizeof);
37
  //  memset(data, 0, luminousTextureWidth * luminousTextureHeight * 4 * uint.sizeof);
38
    glGenTextures(1, &luminousTexture);
38
    glGenTextures(1, &luminousTexture);
39
    glBindTexture(GL_TEXTURE_2D, luminousTexture);
39
    glBindTexture(GL_TEXTURE_2D, luminousTexture);
40
    glTexImage2D(GL_TEXTURE_2D, 0, 4, luminousTextureWidth, luminousTextureHeight, 0,
40
    glTexImage2D(GL_TEXTURE_2D, 0, 4, luminousTextureWidth, luminousTextureHeight, 0,
(-)gr_hi/src/abagames/util/sdl/mouse.d (+11 lines)
Lines 11-16 Link Here
11
private import abagames.util.sdl.input;
11
private import abagames.util.sdl.input;
12
private import abagames.util.sdl.recordableinput;
12
private import abagames.util.sdl.recordableinput;
13
private import abagames.util.sdl.screen;
13
private import abagames.util.sdl.screen;
14
15
uint SDL_BUTTON(uint X) { return SDL_PRESSED << (X-1); }
16
const uint SDL_BUTTON_LEFT		= 1;
17
const uint SDL_BUTTON_MIDDLE	= 2;
18
const uint SDL_BUTTON_RIGHT		= 3;
19
const uint SDL_BUTTON_WHEELUP	= 4;
20
const uint SDL_BUTTON_WHEELDOWN	= 5;
21
const uint SDL_BUTTON_LMASK		= SDL_PRESSED << (SDL_BUTTON_LEFT - 1);
22
const uint SDL_BUTTON_MMASK		= SDL_PRESSED << (SDL_BUTTON_MIDDLE - 1);
23
const uint SDL_BUTTON_RMASK		= SDL_PRESSED << (SDL_BUTTON_RIGHT - 1);
24
14
25
15
/**
26
/**
16
 * Mouse input.
27
 * Mouse input.

Return to bug 185575