Changeset 59

Show
Ignore:
Timestamp:
08/05/07 18:13:50 (1 year ago)
Author:
Deformative
Message:

Fixed the GC bug and can compile on gdc

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/yage/core/types.d

    r54 r59  
    1212import yage.core.parse; 
    1313import yage.core.vector; 
     14import yage.core.vector:Vec4f; 
    1415private extern (C) void *memcpy(void *, void *, uint); 
    1516 
  • trunk/src/yage/core/vector.d

    r53 r59  
    99import std.math; 
    1010import std.stdio; 
    11 import yage.core.all
     11import yage.core.parse
    1212import yage.core.matrix; 
    1313import yage.core.math; 
  • trunk/src/yage/node/all.d

    r34 r59  
    2424    import yage.node.terrain; 
    2525} 
     26public import yage.node.node: Node; 
     27public import yage.node.camera: CameraNode; 
  • trunk/src/yage/node/camera.d

    r48 r59  
    114114 
    115115    /// 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;  
    118118    } 
    119119 
  • trunk/src/yage/node/light.d

    r53 r59  
    1919import yage.system.constant; 
    2020import yage.system.render; 
    21  
     21import yage.node.camera: CameraNode; 
    2222 
    2323/** 
  • trunk/src/yage/resource/layer.d

    r57 r59  
    199199            " emissive=\"" ~ emissive.hex ~ "\"" ~ 
    200200            " specularity=\"" ~ .toString(specularity) ~ "\"" ~ 
    201           " blend=\"" ~ .toString(blend) ~ "\"" ~ 
    202           " cull=\"" ~ .toString(cull) ~ "\"" ~ 
     201        //    " blend=\"" ~ .toString(blend) ~ "\"" ~ 
     202        //    " cull=\"" ~ .toString(cull) ~ "\"" ~ 
    203203            " draw=\"" ~ .toString(draw) ~ "\"" ~ 
    204204            " width=\"" ~ .toString(width) ~ "\"" ~ 
  • trunk/src/yage/resource/mesh.d

    r58 r59  
    4949 
    5050    /// 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    } 
    5655 
    5756    /// Are the triangles of this mesh cashed in video memory? 
  • trunk/src/yage/system/render.d

    r57 r59  
    1919import yage.resource.mesh; 
    2020import yage.node.all; 
     21import yage.node.camera: CameraNode; 
    2122 
    2223private struct Attribute2