Changeset 59
- Timestamp:
- 08/05/07 18:13:50 (1 year ago)
- Files:
-
- trunk/src/yage/core/types.d (modified) (1 diff)
- trunk/src/yage/core/vector.d (modified) (1 diff)
- trunk/src/yage/node/all.d (modified) (1 diff)
- trunk/src/yage/node/camera.d (modified) (1 diff)
- trunk/src/yage/node/light.d (modified) (1 diff)
- trunk/src/yage/resource/layer.d (modified) (1 diff)
- trunk/src/yage/resource/mesh.d (modified) (1 diff)
- trunk/src/yage/system/render.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/yage/core/types.d
r54 r59 12 12 import yage.core.parse; 13 13 import yage.core.vector; 14 import yage.core.vector:Vec4f; 14 15 private extern (C) void *memcpy(void *, void *, uint); 15 16 trunk/src/yage/core/vector.d
r53 r59 9 9 import std.math; 10 10 import std.stdio; 11 import yage.core. all;11 import yage.core.parse; 12 12 import yage.core.matrix; 13 13 import yage.core.math; trunk/src/yage/node/all.d
r34 r59 24 24 import yage.node.terrain; 25 25 } 26 public import yage.node.node: Node; 27 public import yage.node.camera: CameraNode; trunk/src/yage/node/camera.d
r48 r59 114 114 115 115 /// Get the inverse of the camera's absolute matrix. This is pre-calculated per call to .toTexture(). 116 Matrix getInverseAbsoluteMatrix()117 { return inverse_absolute;116 public Matrix getInverseAbsoluteMatrix() { 117 return inverse_absolute; 118 118 } 119 119 trunk/src/yage/node/light.d
r53 r59 19 19 import yage.system.constant; 20 20 import yage.system.render; 21 21 import yage.node.camera: CameraNode; 22 22 23 23 /** trunk/src/yage/resource/layer.d
r57 r59 199 199 " emissive=\"" ~ emissive.hex ~ "\"" ~ 200 200 " specularity=\"" ~ .toString(specularity) ~ "\"" ~ 201 " blend=\"" ~ .toString(blend) ~ "\"" ~202 " cull=\"" ~ .toString(cull) ~ "\"" ~201 // " blend=\"" ~ .toString(blend) ~ "\"" ~ 202 // " cull=\"" ~ .toString(cull) ~ "\"" ~ 203 203 " draw=\"" ~ .toString(draw) ~ "\"" ~ 204 204 " width=\"" ~ .toString(width) ~ "\"" ~ trunk/src/yage/resource/mesh.d
r58 r59 49 49 50 50 /// Cleanup 51 //~this(){ 52 //writefln(this.toString(), " has been destructed"); 53 //if (Device.getSupport(DEVICE_VBO)) 54 // glDeleteBuffersARB(triangles.length*Vec3i.sizeof, &vbo_triangles); 55 //} 51 ~this(){ 52 if (Device.getSupport(DEVICE_VBO)) 53 glDeleteBuffersARB(1, &vbo_triangles); 54 } 56 55 57 56 /// Are the triangles of this mesh cashed in video memory? trunk/src/yage/system/render.d
r57 r59 19 19 import yage.resource.mesh; 20 20 import yage.node.all; 21 import yage.node.camera: CameraNode; 21 22 22 23 private struct Attribute2
