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
package ${enclosing_package} { | |
import alternativa.engine3d.core.Camera3D; | |
import alternativa.engine3d.core.Object3D; | |
import alternativa.engine3d.core.Resource; | |
import alternativa.engine3d.core.View; | |
import alternativa.engine3d.materials.FillMaterial; | |
import alternativa.engine3d.objects.WireFrame; | |
import alternativa.engine3d.primitives.Box; | |
import flash.display.Sprite; |
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
package { | |
import alternativa.engine3d.core.Camera3D; | |
import alternativa.engine3d.core.Object3D; | |
import alternativa.engine3d.core.Resource; | |
import alternativa.engine3d.core.View; | |
import alternativa.engine3d.materials.FillMaterial; | |
import alternativa.engine3d.objects.WireFrame; | |
import alternativa.engine3d.primitives.Box; | |
import flash.display.Sprite; |
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
package com.realaxy.utils { | |
import alternativa.engine3d.core.Camera3D; | |
import flash.display.BitmapData; | |
import flash.display.Stage3D; | |
import flash.events.TimerEvent; | |
import flash.utils.Timer; | |
/** | |
* Readback screenshot in Chrome PPAPI Flash Player Plugin |
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
package ${enclosing_package} { | |
import flash.events.Event; | |
public class ${enclosing_type} extends Event | |
{ | |
public function ${enclosing_type}(type:String, bubbles:Boolean=false, cancelable:Boolean=false) | |
{ | |
super(type, bubbles, cancelable); | |
} | |
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
package away3d.core.math { | |
import flash.geom.Matrix3D; | |
import flash.geom.Orientation3D; | |
import flash.geom.Vector3D; | |
public class AwayTransform { | |
public var a:Number = 1; | |
public var b:Number = 0; | |
public var c:Number = 0; |
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
package { | |
import flash.display.Sprite; | |
public class ConditionTest extends Sprite{ | |
public function ConditionTest() { | |
} | |
private function func1():void { | |
var a:Sprite; |
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
package { | |
import flash.display.Sprite; | |
import flash.text.TextField; | |
import flash.text.TextFieldAutoSize; | |
import flash.utils.getTimer; | |
public class ConditionTest extends Sprite { | |
public function ConditionTest() { | |
testTime(); |
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
#include <sstream> | |
#include <thread> | |
#include <cstdio> | |
#include <cstdarg> | |
#include <cwchar> | |
#include <cstdlib> | |
#include <windows.h> | |
struct DebugOutImpl { | |
DebugOutImpl(const char* location, int line, bool enabled_ = true) |
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
// | |
// | |
//Time: | |
// | |
//0.195312 - All browsers with FlashPlayer 11.9 release http://i.imgur.com/0WrbiVP.png | |
//0.203 - exe compiled with MSVC in release http://i.imgur.com/9aUm4TZ.png | |
// | |
//Download swf - https://www.dropbox.com/s/0vwvvo04d179gef/speedTest.swf | |
// | |
//Compile in Crossbridge /cygdrive/c/flascc/sdk/usr/bin/g++.exe speedTest.cpp -O4 -emit-swf -o speedTest.swf |
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 static function generateOrientationTexture(size:int):BitmapData { | |
var half:uint = size / 2; | |
var bmd:BitmapData = new BitmapData(size, size, false, 0x000000); | |
for (var i:uint = 0; i < size; i++) { | |
for (var j:uint = 0; j < size; j++) { | |
var directionX:Number = i - half; | |
var directionY:Number = j - half; | |
var length:Number = Math.sqrt(directionX * directionX + directionY * directionY); | |
directionX /= length; | |
directionY /= length; |
OlderNewer