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

Collapse All | Expand All

(-)tatan/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);
(-)tatan/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);
(-)tatan/Makefile (+17 lines)
Line 0 Link Here
1
DC=gdmd
2
DFLAGS=-g -O -d -release -Iimport -Isrc
3
DOUT=-of
4
5
DSRC=$(shell find src/ -name "*.d")
6
SOURCES=$(DSRC) import/SDL_video.d import/SDL_mouse.d import/hell2.d import/SDL_mixer.d
7
OBJS=$(SOURCES:.d=.o)
8
EXE=tatan
9
10
all: $(EXE)
11
12
$(EXE): $(OBJS)
13
	gcc -o $@ $(OBJS) -lbulletml_d -lgphobos -lpthread -lm -lSDL -lGL -lGLU -lSDL_mixer
14
15
$(OBJS): %.o: %.d
16
	$(DC) -c $(DOUT)$@ $(DFLAGS) $<
17
(-)tatan/src/br/boot.d (+17 lines)
Lines 6-11 Link Here
6
private Mainloop mainloop;
6
private Mainloop mainloop;
7
private Key key;
7
private Key key;
8
private Mouse mouse;
8
private Mouse mouse;
9
10
version (Win32_release) {
9
11
10
private:
12
private:
11
import std.c.windows.windows;
13
import std.c.windows.windows;
Lines 37-43 Link Here
37
	}
39
	}
38
	gc_term();
40
	gc_term();
39
	return result;
41
	return result;
42
}
43
} else {
44
  // Boot as the general executable.
45
  public int main(char[][] args) {
46
    return boot(args);
47
  }
40
}
48
}
49
50
public int boot(char[][] args) {
51
 	double d;
52
	key = new Key();
53
	mouse = new Mouse();
54
	mainloop = new Mainloop(key ,mouse);
55
	mainloop.loop();
56
	return 0;
57
}
41
58
42
int user_start(){
59
int user_start(){
43
	double d;
60
	double d;
(-)tatan/src/util/ascii.d (-2 / +3 lines)
Lines 116-122 Link Here
116
		default:break;
116
		default:break;
117
	}
117
	}
118
	foreach(int b;bars){
118
	foreach(int b;bars){
119
		bar[b] = true;
119
	//	bar[b] = true;
120
	}
120
	}
121
	drawCrossBar(x ,y+20*scale ,scale ,bar[0]);
121
	drawCrossBar(x ,y+20*scale ,scale ,bar[0]);
122
	drawVerticalBar(x-10*scale ,y+10*scale ,scale ,bar[1]);
122
	drawVerticalBar(x-10*scale ,y+10*scale ,scale ,bar[1]);
Lines 333-336 Link Here
333
		
333
		
334
		glPopMatrix();
334
		glPopMatrix();
335
	}
335
	}
336
}
336
}
337

Return to bug 188455