27 static Bitmap* quantum_flash_texture = 0;
32 : nverts(64), npolys(16), mtl(0), verts(0), polys(0), beams(0),
33 texture(quantum_flash_texture), length(8000), width(0),
44 texture = quantum_flash_texture;
47 loc =
Vec3(0.0f, 0.0f, 1000.0f);
62 for (
int i = 0; i <
npolys; i++) {
68 for (
int n = 0; n < 4; n++) {
71 verts->
tu[4*i+n] = (n < 2) ? 0.0f : 1.0f;
72 verts->
tv[4*i+n] = (n > 0 && n < 3) ? 1.0f : 0.0f;
93 strcpy_s(
name,
"QuantumFlash");
132 for (
int i = 0; i <
npolys; i++) {
140 Point vtail = tail - head;
147 verts->
loc[4*i+1] = tail + vlat * 8;
148 verts->
loc[4*i+2] = tail - vlat * 8;
151 DWORD color = D3DCOLOR_RGBA((BYTE) (255*
shade), (BYTE) (255*
shade), (BYTE) (255*
shade), 255);
153 for (
int n = 0; n < 4; n++) {
171 else if (s > 1) s = 1;