This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ; | |
import flash.display.Stage; | |
import flash.display.Stage3D; | |
import flash.display.StageAlign; | |
import flash.display.StageScaleMode; | |
import flash.display3D.Context3D; | |
import flash.display3D.Context3DCompareMode; | |
import flash.display3D.Context3DTriangleFace; | |
import flash.display3D.IndexBuffer3D; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PicoBuild { | |
- @:macro public static function shader() : Array<Field> { | |
+ macro public static function shader() : Array<Field> { | |
p.includeFile = function(file) { | |
var f = Context.resolvePath(file); | |
- return Context.parse("{"+neko.io.File.getContent(f)+"}", Context.makePosition( { min : 0, max : 0, file : f } )); | |
+ // replace "neko.io..." with "sys.io" | |
+ return Context.parse("{"+sys.io.File.getContent(f)+"}", Context.makePosition( { min : 0, max : 0, file : f } )); | |
}; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Source/com/bit101/components/ColorChooser.hx | 28 +++---- | |
Source/com/bit101/components/Component.hx | 106 +++++++++++++-------------- | |
Source/com/bit101/components/InputText.hx | 32 ++++---- | |
Source/com/bit101/components/Label.hx | 28 +++---- | |
Source/com/bit101/components/Panel.hx | 30 ++++---- | |
Source/com/bit101/components/PushButton.hx | 20 ++--- | |
Source/com/bit101/components/Style.hx | 9 ++- | |
Source/com/bit101/components/VBox.hx | 16 ++-- | |
Source/com/bit101/components/Window.hx | 58 +++++++-------- | |
9 files changed, 165 insertions(+), 162 deletions(-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(off < 8) | |
{ | |
if(off < 4) | |
{ | |
if(off < 2) | |
{ | |
if(off < 1) | |
{ | |
if(len < 9) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(off < 8) | |
{ | |
if(off < 4) | |
{ | |
if(off < 2) | |
{ | |
if(off < 1) | |
{ | |
if(len < 9) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ryz.sengine.mesh; | |
import flash.Memory; | |
import ryz.math.V3; | |
/** | |
* ... | |
* @author ryz | |
*/ | |
private typedef M = Memory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
import flash.display.BitmapData; | |
import flash.display.Sprite; | |
import flash.display.Stage; | |
import flash.events.Event; | |
import flash.geom.Rectangle; | |
import flash.text.TextField; | |
import flash.utils.getTimer; | |
import flash.utils.setInterval; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ; | |
import flash.display.Bitmap; | |
import flash.display.BitmapData; | |
import flash.events.Event; | |
import flash.geom.Rectangle; | |
import flash.Lib; | |
import flash.text.TextField; | |
import flash.Vector; | |
import net.hires.debug.Stats; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ; | |
import flash.display.DisplayObject; | |
import flash.display.Sprite; | |
import flash.events.Event; | |
import flash.Lib; | |
import mt.Fiber; | |
/** | |
* ... | |
* @author ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function addComponent<T:GOC>(v:T):Void | |
{ | |
var fid = v.fid; | |
// check for prev and remove if need | |
var prev = comps.get(fid); | |
if (prev != null) | |
{ | |
// remove prev | |
removeComponent(prev); |
OlderNewer