This file contains hidden or 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
// ported from: https://gist.github.com/noonat/847106 | |
import hxd.Timer; | |
import h3d.Buffer; | |
import h3d.Engine; | |
import h3d.Indexes; | |
import h3d.Vector; | |
import h3d.mat.BlendMode; | |
import h3d.mat.Data.Compare; | |
import h3d.mat.Data.Face; |
This file contains hidden or 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
/** | |
* User: booster | |
* Date: 18/08/16 | |
* Time: 9:25 | |
*/ | |
package com.bigdaddyscreations.display.components { | |
import flash.display.Sprite; | |
import flash.events.Event; | |
import flash.events.MouseEvent; | |
import flash.filesystem.File; |
This file contains hidden or 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 Main() { | |
//addEventListener(Event.ADDED_TO_STAGE, onAddedToStage); | |
// add 10000 elements | |
var vec:Vector.<int> = new Vector.<int>(10000); | |
var list:Entry = new Entry(); | |
list.value = 1; | |
var curr:Entry = list; | |
for(var i:int = 0; i < 10000; ++i) { | |
vec[i] = 1; |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<module type="Flex" version="4"> | |
<component name="FlexBuildConfigurationManager" active="AS3-LocaleManager"> | |
<configurations> | |
<configuration name="AS3-LocaleManager" target-platform="Desktop" pure-as="true" output-type="Library" output-file="AS3-LocaleManager.swc" output-folder="$MODULE_DIR$/out"> | |
<dependencies> | |
<sdk name="AIR SDK 4.0" /> | |
</dependencies> | |
<compiler-options /> | |
<packaging-air-desktop /> |
This file contains hidden or 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 class CardAsset extends ObjectContainer3D { | |
private static const frameGeom:PlaneGeometry = new PlaneGeometry(440, 600, 1, 1, false, true); | |
private static const titleGeom:PlaneGeometry = new PlaneGeometry(380, 70, 1, 1, false, true); | |
private static const artGeom:PlaneGeometry = new PlaneGeometry(380, 200, 1, 1, false, true); | |
private static const textGeom:PlaneGeometry = new PlaneGeometry(380, 200, 1, 1, false, true); | |
private var _frameMesh:Mesh; | |
private var _titleMesh:Mesh; | |
private var _artMesh:Mesh; | |
private var _textMesh:Mesh; |
This file contains hidden or 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 class Enum implements Equalable, Comparable, Hashable, Cloneable { | |
private static const OrderMetadataName:String = "Order"; | |
private static var allConstantByClass:Object = {}; | |
private var value:String; | |
public static function allEnums(clazz:Class):Array { | |
var className:String = getQualifiedClassName(clazz); | |
var allConstants:Array = allConstantByClass[className]; |
This file contains hidden or 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
override public function applyRenderable(renderable:IRenderable):void | |
{ | |
var material:MaterialBase; | |
var entity:Entity = renderable.sourceEntity; | |
if (renderable.mouseEnabled) | |
++_numMouseEnableds; | |
_numTriangles += renderable.numTriangles; | |
material = renderable.material; | |
if (material) { |