Changeset 38
- Timestamp:
- 07/09/07 23:07:58 (1 year ago)
- Files:
-
- trunk/bin/yage3d.exe (modified) (previous)
- trunk/src/yage/core/misc.d (modified) (3 diffs)
- trunk/src/yage/gui/all.d (modified) (1 diff)
- trunk/src/yage/gui/style.d (added)
- trunk/src/yage/gui/surface.d (modified) (2 diffs)
- trunk/src/yage/system/device.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/yage/core/misc.d
r32 r38 24 24 25 25 /** 26 * Allow for easy b ool-by-boolconversion from one two-byte type to another.26 * Allow for easy bit-by-bit conversion from one two-byte type to another. 27 27 * Example: 28 28 * -------------------------------- … … 47 47 } 48 48 49 /// Allow for easy b ool-by-boolconversion from one four-byte type to another49 /// Allow for easy bit-by-bit conversion from one four-byte type to another 50 50 struct dword 51 51 { union … … 68 68 } 69 69 70 /// Allow for easy b ool-by-boolconversion from one eight-byte type to another.70 /// Allow for easy bit-by-bit conversion from one eight-byte type to another. 71 71 union qword 72 72 { long l; /// Union of various types. trunk/src/yage/gui/all.d
r36 r38 1 1 module yage.gui.all; 2 2 3 public{ 3 public { 4 import yage.gui.style; 4 5 import yage.gui.surface; 5 6 } trunk/src/yage/gui/surface.d
r36 r38 11 11 12 12 class Surface{ 13 14 13 15 GPUTexture texture; 14 16 … … 60 62 void recalculateTexture(){ 61 63 portion.x = texture.requested_width/cast(float)texture.getWidth(); 62 63 64 portion.y = texture.requested_height/cast(float)texture.getHeight(); 64 65 } trunk/src/yage/system/device.d
r36 r38 295 295 296 296 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 297 foreach(sub; this.subs) sub.draw(); 297 foreach(sub; this.subs) 298 sub.draw(); 298 299 299 300 SDL_GL_SwapBuffers();
