diff --git a/.gitignore b/.gitignore
index d0731de17..6af68d0ce 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,8 +2,10 @@
.DS_Store
.DS_Store?
bin/
+ndll/*/lime*
+ndll/*/liblime*
ndll/*/nme*
-ndll/*/libnme*
+nddl/*/libnme*
project/all_objs
project/obj
project/vc*.pdb
diff --git a/buildfiles/android/MainActivity.java b/buildfiles/android/MainActivity.java
index a04601486..bf46577f8 100644
--- a/buildfiles/android/MainActivity.java
+++ b/buildfiles/android/MainActivity.java
@@ -2,6 +2,6 @@ package ::APP_PACKAGE::;
import android.os.Bundle;
-public class MainActivity extends org.haxe.nme.GameActivity {
+public class MainActivity extends org.haxe.lime.GameActivity {
}
diff --git a/buildfiles/android/template/src/org/haxe/nme/GameActivity.java b/buildfiles/android/template/src/org/haxe/lime/GameActivity.java
similarity index 97%
rename from buildfiles/android/template/src/org/haxe/nme/GameActivity.java
rename to buildfiles/android/template/src/org/haxe/lime/GameActivity.java
index 08948a11f..b06853e11 100644
--- a/buildfiles/android/template/src/org/haxe/nme/GameActivity.java
+++ b/buildfiles/android/template/src/org/haxe/lime/GameActivity.java
@@ -1,4 +1,4 @@
-package org.haxe.nme;
+package org.haxe.lime;
import android.app.Activity;
@@ -109,7 +109,7 @@ public class GameActivity extends Activity implements SensorEventListener {
//if (mMainView == null) {
- Log.d ("NME", "mMainView is NULL");
+ Log.d ("lime", "mMainView is NULL");
::foreach ndlls::
System.loadLibrary ("::name::");::end::
@@ -210,7 +210,7 @@ public class GameActivity extends Activity implements SensorEventListener {
_sound.doPause ();
- mView.sendActivity (NME.DEACTIVATE);
+ mView.sendActivity (Lime.DEACTIVATE);
mView.onPause ();
if (sensorManager != null) {
@@ -228,7 +228,7 @@ public class GameActivity extends Activity implements SensorEventListener {
_sound.doResume ();
- mView.sendActivity (NME.ACTIVATE);
+ mView.sendActivity (Lime.ACTIVATE);
if (sensorManager != null) {
@@ -367,7 +367,7 @@ public class GameActivity extends Activity implements SensorEventListener {
if (type == Sensor.TYPE_ACCELEROMETER) {
accelData = event.values.clone ();
- NME.onAccelerate (-accelData[0], -accelData[1], accelData[2]);
+ Lime.onAccelerate (-accelData[0], -accelData[1], accelData[2]);
}
@@ -414,7 +414,7 @@ public class GameActivity extends Activity implements SensorEventListener {
}
// TODO: Wait for result?
- mView.sendActivity (NME.DESTROY);
+ mView.sendActivity (Lime.DESTROY);
activity = null;
super.onDestroy ();
@@ -473,14 +473,14 @@ public class GameActivity extends Activity implements SensorEventListener {
if (foundRotationMatrix) {
SensorManager.getOrientation (rotationMatrix, orientData);
- NME.onOrientationUpdate (orientData[0], orientData[1], orientData[2]);
+ Lime.onOrientationUpdate (orientData[0], orientData[1], orientData[2]);
}
}
- NME.onDeviceOrientationUpdate (prepareDeviceOrientation ());
- NME.onNormalOrientationFound (bufferedNormalOrientation);
+ Lime.onDeviceOrientationUpdate (prepareDeviceOrientation ());
+ Lime.onNormalOrientationFound (bufferedNormalOrientation);
}
@@ -532,7 +532,7 @@ public class GameActivity extends Activity implements SensorEventListener {
@Override public void run () {
- NME.onCallback (inHandle);
+ Lime.onCallback (inHandle);
}
diff --git a/buildfiles/android/template/src/org/haxe/nme/MainView.java b/buildfiles/android/template/src/org/haxe/lime/MainView.java
similarity index 91%
rename from buildfiles/android/template/src/org/haxe/nme/MainView.java
rename to buildfiles/android/template/src/org/haxe/lime/MainView.java
index 186766bcd..dd84a4a11 100644
--- a/buildfiles/android/template/src/org/haxe/nme/MainView.java
+++ b/buildfiles/android/template/src/org/haxe/lime/MainView.java
@@ -1,4 +1,4 @@
-package org.haxe.nme;
+package org.haxe.lime;
import android.app.Activity;
@@ -58,13 +58,13 @@ class MainView extends GLSurfaceView {
EGLConfig[] v2_configs = new EGLConfig[1];
int[] num_config = new int[1];
- int[] attrs = { EGL10.EGL_RENDERABLE_TYPE, ::if DEFINE_NME_FORCE_GLES1::1::else::4::end:: /*EGL_OPENGL_ES2_BIT*/, EGL10.EGL_NONE };
+ int[] attrs = { EGL10.EGL_RENDERABLE_TYPE, ::if DEFINE_LIME_FORCE_GLES1::1::else::4::end:: /*EGL_OPENGL_ES2_BIT*/, EGL10.EGL_NONE };
egl.eglChooseConfig (display, attrs, v2_configs, 1, num_config);
if (num_config[0]==1) {
- eglVersion = ::if DEFINE_NME_FORCE_GLES1::1::else::2::end::;
- setEGLContextClientVersion (::if DEFINE_NME_FORCE_GLES1::1::else::2::end::);
+ eglVersion = ::if DEFINE_LIME_FORCE_GLES1::1::else::2::end::;
+ setEGLContextClientVersion (::if DEFINE_LIME_FORCE_GLES1::1::else::2::end::);
}
@@ -205,7 +205,7 @@ class MainView extends GLSurfaceView {
}
- double wake = NME.getNextWake ();
+ double wake = Lime.getNextWake ();
final MainView me = this;
if (wake <= 0) {
@@ -312,7 +312,7 @@ class MainView extends GLSurfaceView {
public void run () {
- me.HandleResult (NME.onJoyMotion (deviceId, axis, ((value - range.getMin ()) / (range.getRange ())) * 65535 - 32768));
+ me.HandleResult (Lime.onJoyMotion (deviceId, axis, ((value - range.getMin ()) / (range.getRange ())) * 65535 - 32768));
}
@@ -324,7 +324,7 @@ class MainView extends GLSurfaceView {
public void run () {
- me.HandleResult (NME.onJoyMotion (deviceId, axis, 0));
+ me.HandleResult (Lime.onJoyMotion (deviceId, axis, 0));
}
@@ -358,7 +358,7 @@ class MainView extends GLSurfaceView {
public void run () {
- me.HandleResult (NME.onJoyChange (deviceId, inKeyCode, true));
+ me.HandleResult (Lime.onJoyChange (deviceId, inKeyCode, true));
}
@@ -378,7 +378,7 @@ class MainView extends GLSurfaceView {
public void run () {
- me.HandleResult (NME.onKeyChange (keyCode, true));
+ me.HandleResult (Lime.onKeyChange (keyCode, true));
}
@@ -407,7 +407,7 @@ class MainView extends GLSurfaceView {
public void run () {
- me.HandleResult (NME.onJoyChange (deviceId, inKeyCode, false));
+ me.HandleResult (Lime.onJoyChange (deviceId, inKeyCode, false));
}
@@ -427,7 +427,7 @@ class MainView extends GLSurfaceView {
public void run () {
- me.HandleResult (NME.onKeyChange (keyCode, false));
+ me.HandleResult (Lime.onKeyChange (keyCode, false));
}
@@ -444,7 +444,7 @@ class MainView extends GLSurfaceView {
void onPoll () {
- HandleResult (NME.onPoll ());
+ HandleResult (Lime.onPoll ());
}
@@ -483,7 +483,7 @@ class MainView extends GLSurfaceView {
public void run () {
- me.HandleResult (NME.onTouch (t, x, y, id, sizeX, sizeY));
+ me.HandleResult (Lime.onTouch (t, x, y, id, sizeX, sizeY));
}
@@ -509,7 +509,7 @@ class MainView extends GLSurfaceView {
float x = ev.getX ();
float y = ev.getY ();
- me.HandleResult (NME.onTrackball (x, y));
+ me.HandleResult (Lime.onTrackball (x, y));
}
@@ -551,7 +551,7 @@ class MainView extends GLSurfaceView {
public void run () {
- NME.onActivity (inActivity);
+ Lime.onActivity (inActivity);
}
@@ -601,7 +601,7 @@ class MainView extends GLSurfaceView {
public void onDrawFrame (GL10 gl) {
- mMainView.HandleResult (NME.onRender ());
+ mMainView.HandleResult (Lime.onRender ());
Sound.checkSoundCompletion ();
}
@@ -609,7 +609,7 @@ class MainView extends GLSurfaceView {
public void onSurfaceChanged (GL10 gl, int width, int height) {
- mMainView.HandleResult (NME.onResize (width, height));
+ mMainView.HandleResult (Lime.onResize (width, height));
}
diff --git a/buildfiles/android/template/src/org/haxe/nme/Sound.java b/buildfiles/android/template/src/org/haxe/lime/Sound.java
similarity index 99%
rename from buildfiles/android/template/src/org/haxe/nme/Sound.java
rename to buildfiles/android/template/src/org/haxe/lime/Sound.java
index 286daf4b4..8b8135fc1 100644
--- a/buildfiles/android/template/src/org/haxe/nme/Sound.java
+++ b/buildfiles/android/template/src/org/haxe/lime/Sound.java
@@ -1,4 +1,4 @@
-package org.haxe.nme;
+package org.haxe.lime;
import java.io.File;
import java.io.FileInputStream;
diff --git a/buildfiles/emscripten/cpp/Main.cpp b/buildfiles/emscripten/cpp/Main.cpp
index f6e262420..c6ab66805 100644
--- a/buildfiles/emscripten/cpp/Main.cpp
+++ b/buildfiles/emscripten/cpp/Main.cpp
@@ -1,7 +1,7 @@
/*
* Main.mm
*
- * Boot code for NME.
+ * Boot code for lime.
*
*/
diff --git a/buildfiles/html5/haxe/lime/AssetData.hx b/buildfiles/html5/haxe/lime/AssetData.hx
index db89dd29c..3f88c8e81 100644
--- a/buildfiles/html5/haxe/lime/AssetData.hx
+++ b/buildfiles/html5/haxe/lime/AssetData.hx
@@ -17,7 +17,7 @@ class AssetData {
if (!initialized) {
- ::if (assets != null)::::foreach assets::::if (type == "font")::className.set ("::id::", nme.NME_::flatName::);::else::path.set ("::id::", "::resourceName::");::end::
+ ::if (assets != null)::::foreach assets::::if (type == "font")::className.set ("::id::", nme.lime_::flatName::);::else::path.set ("::id::", "::resourceName::");::end::
type.set ("::id::", Reflect.field (AssetType, "::type::".toUpperCase ()));
::end::::end::
::if (libraries != null)::::foreach libraries::library.set ("::name::", Reflect.field (LibraryType, "::type::".toUpperCase ()));
@@ -32,5 +32,5 @@ class AssetData {
} //AssetData
-::foreach assets::::if (type == "font")::class NME_::flatName:: extends flash.text.Font { }::end::
+::foreach assets::::if (type == "font")::class lime_::flatName:: extends flash.text.Font { }::end::
::end::
\ No newline at end of file
diff --git a/buildfiles/iphone/PROJ/Classes/Main.mm b/buildfiles/iphone/PROJ/Classes/Main.mm
index f6e262420..c6ab66805 100644
--- a/buildfiles/iphone/PROJ/Classes/Main.mm
+++ b/buildfiles/iphone/PROJ/Classes/Main.mm
@@ -1,7 +1,7 @@
/*
* Main.mm
*
- * Boot code for NME.
+ * Boot code for lime.
*
*/
diff --git a/dependencies/extension-api/src/org/haxe/nme/HaxeObject.java b/dependencies/extension-api/src/org/haxe/lime/HaxeObject.java
similarity index 77%
rename from dependencies/extension-api/src/org/haxe/nme/HaxeObject.java
rename to dependencies/extension-api/src/org/haxe/lime/HaxeObject.java
index eaf4f2f02..e0a299bb6 100644
--- a/dependencies/extension-api/src/org/haxe/nme/HaxeObject.java
+++ b/dependencies/extension-api/src/org/haxe/lime/HaxeObject.java
@@ -1,4 +1,4 @@
-package org.haxe.nme;
+package org.haxe.lime;
import android.util.Log;
import java.lang.Boolean;
@@ -24,7 +24,7 @@ public class HaxeObject
protected void finalize() throws Throwable {
try {
- NME.releaseReference(__haxeHandle);
+ Lime.releaseReference(__haxeHandle);
} finally {
super.finalize();
}
@@ -32,14 +32,14 @@ public class HaxeObject
public Object call0(String function)
{
//Log.e("HaxeObject","Calling obj0" + function + "()" );
- return NME.callObjectFunction(__haxeHandle,function,new Object[0]);
+ return Lime.callObjectFunction(__haxeHandle,function,new Object[0]);
}
public Object call1(String function,Object arg0)
{
Object[] args = new Object[1];
args[0] = arg0;
//Log.e("HaxeObject","Calling obj1 " + function + "(" + arg0 + ")" );
- return NME.callObjectFunction(__haxeHandle,function,args);
+ return Lime.callObjectFunction(__haxeHandle,function,args);
}
public Object call2(String function,Object arg0,Object arg1)
{
@@ -47,7 +47,7 @@ public class HaxeObject
args[0] = arg0;
args[1] = arg1;
//Log.e("HaxeObject","Calling obj2 " + function + "(" + arg0 + "," + arg1 + ")" );
- return NME.callObjectFunction(__haxeHandle,function,args);
+ return Lime.callObjectFunction(__haxeHandle,function,args);
}
public Object call3(String function,Object arg0,Object arg1,Object arg2)
{
@@ -56,7 +56,7 @@ public class HaxeObject
args[1] = arg1;
args[2] = arg2;
//Log.e("HaxeObject","Calling obj3 " + function + "(" + arg0 + "," + arg1 + "," + arg2 + ")" );
- return NME.callObjectFunction(__haxeHandle,function,args);
+ return Lime.callObjectFunction(__haxeHandle,function,args);
}
public Object call4(String function,Object arg0,Object arg1,Object arg2,Object arg3)
{
@@ -66,20 +66,20 @@ public class HaxeObject
args[2] = arg2;
args[3] = arg3;
//Log.e("HaxeObject","Calling obj4 " + function + "(" + arg0 + "," + arg1 + "," + arg2 + "," + arg3 + ")" );
- return NME.callObjectFunction(__haxeHandle,function,args);
+ return Lime.callObjectFunction(__haxeHandle,function,args);
}
public double callD0(String function)
{
//Log.e("HaxeObject","Calling objD0 " + function + "()" );
- return NME.callNumericFunction(__haxeHandle,function,new Object[0]);
+ return Lime.callNumericFunction(__haxeHandle,function,new Object[0]);
}
public double callD1(String function,Object arg0)
{
Object[] args = new Object[1];
args[0] = arg0;
//Log.e("HaxeObject","Calling D1 " + function + "(" + arg0 + ")" );
- return NME.callNumericFunction(__haxeHandle,function,args);
+ return Lime.callNumericFunction(__haxeHandle,function,args);
}
public double callD2(String function,Object arg0,Object arg1)
{
@@ -87,7 +87,7 @@ public class HaxeObject
args[0] = arg0;
args[1] = arg1;
//Log.e("HaxeObject","Calling D2 " + function + "(" + arg0 + "," + arg1 + ")" );
- return NME.callNumericFunction(__haxeHandle,function,args);
+ return Lime.callNumericFunction(__haxeHandle,function,args);
}
public double callD3(String function,Object arg0,Object arg1,Object arg2)
{
@@ -96,7 +96,7 @@ public class HaxeObject
args[1] = arg1;
args[2] = arg2;
//Log.e("HaxeObject","Calling D3 " + function + "(" + arg0 + "," + arg1 + "," + arg2 + ")" );
- return NME.callNumericFunction(__haxeHandle,function,args);
+ return Lime.callNumericFunction(__haxeHandle,function,args);
}
@@ -105,10 +105,10 @@ public class HaxeObject
public Object call(String function, Object[] args)
{
- return NME.callObjectFunction(__haxeHandle,function,args);
+ return Lime.callObjectFunction(__haxeHandle,function,args);
}
public double callD(String function, Object[] args)
{
- return NME.callNumericFunction(__haxeHandle,function,args);
+ return Lime.callNumericFunction(__haxeHandle,function,args);
}
}
diff --git a/dependencies/extension-api/src/org/haxe/nme/NME.java b/dependencies/extension-api/src/org/haxe/lime/Lime.java
similarity index 94%
rename from dependencies/extension-api/src/org/haxe/nme/NME.java
rename to dependencies/extension-api/src/org/haxe/lime/Lime.java
index 23aa54562..383da87dd 100644
--- a/dependencies/extension-api/src/org/haxe/nme/NME.java
+++ b/dependencies/extension-api/src/org/haxe/lime/Lime.java
@@ -1,12 +1,12 @@
-package org.haxe.nme;
+package org.haxe.lime;
// Wrapper for native library
-public class NME {
+public class Lime {
static {
System.loadLibrary("openal");
- System.loadLibrary("nme");
+ System.loadLibrary("lime");
}
public static final int ACTIVATE = 1;
diff --git a/dependencies/extension-api/src/org/haxe/nme/Value.java b/dependencies/extension-api/src/org/haxe/lime/Value.java
similarity index 93%
rename from dependencies/extension-api/src/org/haxe/nme/Value.java
rename to dependencies/extension-api/src/org/haxe/lime/Value.java
index 9b9aca1cd..00b1c207d 100644
--- a/dependencies/extension-api/src/org/haxe/nme/Value.java
+++ b/dependencies/extension-api/src/org/haxe/lime/Value.java
@@ -1,4 +1,4 @@
-package org.haxe.nme;
+package org.haxe.lime;
public class Value {
diff --git a/examples/HerokuShaders/src/Main.hx b/examples/HerokuShaders/src/Main.hx
index 245f94b05..1fc98e60e 100644
--- a/examples/HerokuShaders/src/Main.hx
+++ b/examples/HerokuShaders/src/Main.hx
@@ -5,7 +5,7 @@
import lime.utils.Assets;
import lime.LiME;
- //Import GL stuff from nme
+ //Import GL stuff from Lime
import lime.gl.GL;
import lime.gl.GLBuffer;
import lime.gl.GLProgram;
diff --git a/haxe/Timer.hx b/haxe/Timer.hx
index e60880c13..13675c406 100644
--- a/haxe/Timer.hx
+++ b/haxe/Timer.hx
@@ -44,7 +44,7 @@ package haxe;
*/
@:noCompletion static public function __nextWake( limit:Float ):Float {
- var now = nme_time_stamp () * 1000.0;
+ var now = lime_time_stamp () * 1000.0;
var sleep;
for (timer in sRunningTimers) {
@@ -103,10 +103,10 @@ package haxe;
static public function stamp ():Float {
- return nme_time_stamp ();
+ return lime_time_stamp ();
}
- static var nme_time_stamp = lime.utils.Libs.load ("nme","nme_time_stamp", 0);
+ static var lime_time_stamp = lime.utils.Libs.load ("lime","lime_time_stamp", 0);
} //Timer
diff --git a/include.xml b/include.xml
index fd1458be3..9c5cbf557 100644
--- a/include.xml
+++ b/include.xml
@@ -19,7 +19,7 @@
-
+
diff --git a/lime/AudioHandler.hx b/lime/AudioHandler.hx
index 303e052d1..90d833963 100644
--- a/lime/AudioHandler.hx
+++ b/lime/AudioHandler.hx
@@ -37,7 +37,7 @@ class Sound {
sound = null;
#if lime_native
- sound = nme_sound_channel_create(handle, _start, _loops, _transform);
+ sound = lime_sound_channel_create(handle, _start, _loops, _transform);
#end //lime_native
}
@@ -45,7 +45,7 @@ class Sound {
if(sound != null) {
#if lime_native
- nme_sound_channel_stop(sound);
+ lime_sound_channel_stop(sound);
#end //lime_native
sound = null;
@@ -56,7 +56,7 @@ class Sound {
_transform.volume = _v;
#if lime_native
- nme_sound_channel_set_transform(sound,_transform);
+ lime_sound_channel_set_transform(sound,_transform);
#end //lime_native
return volume = _v;
@@ -65,16 +65,16 @@ class Sound {
_transform.pan = _p;
#if lime_native
- nme_sound_channel_set_transform(sound,_transform);
+ lime_sound_channel_set_transform(sound,_transform);
#end //lime_native
return pan = _p;
}
#if lime_native
- private static var nme_sound_channel_create = Libs.load("nme","nme_sound_channel_create", 4);
- private static var nme_sound_channel_stop = Libs.load("nme","nme_sound_channel_stop", 1);
- private static var nme_sound_channel_set_transform = Libs.load("nme","nme_sound_channel_set_transform", 2);
+ private static var lime_sound_channel_create = Libs.load("lime","lime_sound_channel_create", 4);
+ private static var lime_sound_channel_stop = Libs.load("lime","lime_sound_channel_stop", 1);
+ private static var lime_sound_channel_set_transform = Libs.load("lime","lime_sound_channel_set_transform", 2);
#end //lime_native
}
@@ -98,15 +98,15 @@ class AudioHandler {
}
#if lime_native
- var _handle = nme_sound_from_file( lime.AssetData.path.get(_file), _music);
+ var _handle = lime_sound_from_file( lime.AssetData.path.get(_file), _music);
var _sound = new Sound(_handle);
sounds.set(_name, _sound);
#end //lime_native
}
#if lime_native
- private static var nme_sound_from_file = Libs.load("nme","nme_sound_from_file", 2);
- private static var nme_sound_from_data = Libs.load("nme","nme_sound_from_data", 3);
+ private static var lime_sound_from_file = Libs.load("lime","lime_sound_from_file", 2);
+ private static var lime_sound_from_data = Libs.load("lime","lime_sound_from_data", 3);
#end //lime_native
}
\ No newline at end of file
diff --git a/lime/InputHandler.hx b/lime/InputHandler.hx
index 0e5776561..969619b9b 100644
--- a/lime/InputHandler.hx
+++ b/lime/InputHandler.hx
@@ -74,7 +74,7 @@ class InputHandler {
meta_down : (_event.flags & efCommandDown > 0)
});
}
- //nmeOnKey(_event, KeyboardEvent.KEY_DOWN);
+ //limeOnKey(_event, KeyboardEvent.KEY_DOWN);
}
public function lime_onkeyup(_event:Dynamic) {
@@ -93,7 +93,7 @@ class InputHandler {
meta_down : (_event.flags & efCommandDown > 0)
});
}
- //nmeOnKey(_event, KeyboardEvent.KEY_UP);
+ //limeOnKey(_event, KeyboardEvent.KEY_UP);
}
public function lime_gotinputfocus(_event:Dynamic) {
@@ -112,7 +112,7 @@ class InputHandler {
});
}
//var evt = new Event(FocusEvent.FOCUS_IN);
- //nmeDispatchEvent(evt);
+ //limeDispatchEvent(evt);
}
public function lime_lostinputfocus(_event:Dynamic) {
@@ -131,7 +131,7 @@ class InputHandler {
});
}
//var evt = new Event(FocusEvent.FOCUS_OUT);
- //nmeDispatchEvent(evt);
+ //limeDispatchEvent(evt);
}
//Mouse
@@ -345,7 +345,7 @@ class InputHandler {
if(lib.host.ontouchtap != null) {
lib.host.ontouchtap(_event);
}
- //nmeOnTouchTap(_event.TouchEvent.TOUCH_TAP);
+ //limeOnTouchTap(_event.TouchEvent.TOUCH_TAP);
}
//Joystick
@@ -354,35 +354,35 @@ class InputHandler {
if(lib.host.onjoyaxismove != null) {
lib.host.onjoyaxismove(_event);
}
- //nmeOnJoystick(_event, JoystickEvent.AXIS_MOVE);
+ //limeOnJoystick(_event, JoystickEvent.AXIS_MOVE);
}
public function lime_joyballmove(_event:Dynamic) {
if(lib.host.onjoyballmove != null) {
lib.host.onjoyballmove(_event);
}
- //nmeOnJoystick(_event, JoystickEvent.BALL_MOVE);
+ //limeOnJoystick(_event, JoystickEvent.BALL_MOVE);
}
public function lime_joyhatmove(_event:Dynamic) {
if(lib.host.onjoyhatmove != null) {
lib.host.onjoyhatmove(_event);
}
- //nmeOnJoystick(_event, JoystickEvent.HAT_MOVE);
+ //limeOnJoystick(_event, JoystickEvent.HAT_MOVE);
}
public function lime_joybuttondown(_event:Dynamic) {
if(lib.host.onjoybuttondown != null) {
lib.host.onjoybuttondown(_event);
}
- //nmeOnJoystick(_event, JoystickEvent.BUTTON_DOWN);
+ //limeOnJoystick(_event, JoystickEvent.BUTTON_DOWN);
}
public function lime_joybuttonup(_event:Dynamic) {
if(lib.host.onjoybuttonup != null) {
lib.host.onjoybuttonup(_event);
}
- //nmeOnJoystick(_event, JoystickEvent.BUTTON_UP);
+ //limeOnJoystick(_event, JoystickEvent.BUTTON_UP);
}
diff --git a/lime/LiME.hx b/lime/LiME.hx
index b4d9bf287..898950384 100644
--- a/lime/LiME.hx
+++ b/lime/LiME.hx
@@ -17,17 +17,17 @@ class LiME {
//the config passed to us on creation
public var config : Dynamic;
- //The handlers for the messages from NME
+ //The handlers for the messages from lime
public var audio : AudioHandler;
public var input : InputHandler;
public var render : RenderHandler;
public var window : WindowHandler;
-//nme specifics
+//lime specifics
- //the handle to the window from nme
+ //the handle to the window from lime
public var window_handle : Dynamic;
- //the handle to the nme stage
+ //the handle to the lime stage
public var view_handle : Dynamic;
// timing
@@ -75,7 +75,7 @@ class LiME {
}
#if android
- render_request_function = nme_stage_request_render;
+ render_request_function = lime_stage_request_render;
#else
render_request_function = null;
#end //android
@@ -297,7 +297,7 @@ class LiME {
} //on_syswm
- //Called when updated by the nme/sdl runtime
+ //Called when updated by the lime/sdl runtime
public function on_update(_event) {
_debug('on_update ' + Timer.stamp(), true, false);
@@ -377,7 +377,7 @@ class LiME {
var nextWake = haxe.Timer.__nextWake (315000000.0);
nextWake = __nextFrameDue( nextWake );
- nme_stage_set_next_wake( view_handle, nextWake );
+ lime_stage_set_next_wake( view_handle, nextWake );
return nextWake;
@@ -434,8 +434,8 @@ class LiME {
} //_debug
#if lime_native
- private static var nme_stage_request_render = Libs.load("nme","nme_stage_request_render", 0);
- private static var nme_stage_set_next_wake = Libs.load("nme","nme_stage_set_next_wake", 2);
+ private static var lime_stage_request_render = Libs.load("lime","lime_stage_request_render", 0);
+ private static var lime_stage_set_next_wake = Libs.load("lime","lime_stage_set_next_wake", 2);
#end
}
diff --git a/lime/RenderHandler.hx b/lime/RenderHandler.hx
index 0a8bdb12b..3c5dc203b 100644
--- a/lime/RenderHandler.hx
+++ b/lime/RenderHandler.hx
@@ -52,13 +52,13 @@ class RenderHandler {
#if lime_native
//Set up the OpenGL View
- direct_renderer_handle = nme_direct_renderer_create();
+ direct_renderer_handle = lime_direct_renderer_create();
//Add this to the main stage, so it will render
- nme_doc_add_child( lib.view_handle, direct_renderer_handle );
+ lime_doc_add_child( lib.view_handle, direct_renderer_handle );
//Set this handle to the real view with a render function
- nme_direct_renderer_set( direct_renderer_handle, on_render );
+ lime_direct_renderer_set( direct_renderer_handle, on_render );
#end //lime_native
@@ -79,7 +79,7 @@ class RenderHandler {
throw "WebGL is required to run this";
}
- lime.gl.GL.nmeContext = direct_renderer_handle;
+ lime.gl.GL.limeContext = direct_renderer_handle;
requestAnimFrame = js.Browser.window.requestAnimationFrame;
@@ -206,7 +206,7 @@ class RenderHandler {
public function request_render() {
#if lime_native
- nme_stage_request_render();
+ lime_stage_request_render();
#end
}
@@ -229,10 +229,10 @@ class RenderHandler {
#if lime_native
// trace("now doing render");
- // nme_stage_request_render();
+ // lime_stage_request_render();
- nme_render_stage( lib.view_handle );
- // nme_stage_request_render();
+ lime_render_stage( lib.view_handle );
+ // lime_stage_request_render();
#end //lime_native
return true;
@@ -247,14 +247,14 @@ class RenderHandler {
} //on_render
-//nme functions
+//lime functions
#if lime_native
- private static var nme_stage_request_render = Libs.load("nme","nme_stage_request_render", 0);
- private static var nme_render_stage = Libs.load("nme","nme_render_stage", 1);
- private static var nme_doc_add_child = Libs.load("nme","nme_doc_add_child", 2);
- private static var nme_direct_renderer_create = Libs.load("nme","nme_direct_renderer_create", 0);
- private static var nme_direct_renderer_set = Libs.load("nme","nme_direct_renderer_set", 2);
- private static var nme_stage_set_next_wake = Libs.load("nme","nme_stage_set_next_wake", 2);
+ private static var lime_stage_request_render = Libs.load("lime","lime_stage_request_render", 0);
+ private static var lime_render_stage = Libs.load("lime","lime_render_stage", 1);
+ private static var lime_doc_add_child = Libs.load("lime","lime_doc_add_child", 2);
+ private static var lime_direct_renderer_create = Libs.load("lime","lime_direct_renderer_create", 0);
+ private static var lime_direct_renderer_set = Libs.load("lime","lime_direct_renderer_set", 2);
+ private static var lime_stage_set_next_wake = Libs.load("lime","lime_stage_set_next_wake", 2);
#end //lime_native
}
diff --git a/lime/WindowHandler.hx b/lime/WindowHandler.hx
index 010158b62..e2757b94a 100644
--- a/lime/WindowHandler.hx
+++ b/lime/WindowHandler.hx
@@ -25,7 +25,7 @@ class WindowHandler {
#if lime_native
- nme_create_main_frame(
+ lime_create_main_frame(
lib.on_window_ready,
lib.config.width, //width
@@ -50,7 +50,7 @@ class WindowHandler {
lib.config.title, //title
null //icon
- ); //nme_create_main_frame
+ ); //lime_create_main_frame
#end
@@ -73,7 +73,7 @@ class WindowHandler {
public function shutdown() {
#if lime_native
- nme_close();
+ lime_close();
#end
lib._debug(':: lime :: \t WindowHandler shut down.');
@@ -83,12 +83,12 @@ class WindowHandler {
#if lime_native
//Fetch the stage handle
- lib.view_handle = nme_get_frame_stage( lib.window_handle );
+ lib.view_handle = lime_get_frame_stage( lib.window_handle );
//Make sure that our configs are up to date with the actual screen resolution
//not just the specified resolution in the project file
- lib.config.width = nme_stage_get_stage_width(lib.view_handle);
- lib.config.height = nme_stage_get_stage_height(lib.view_handle);
+ lib.config.width = lime_stage_get_stage_width(lib.view_handle);
+ lib.config.height = lime_stage_get_stage_height(lib.view_handle);
//move the window based on xml flags
if(lib.config.x != null && lib.config.y != null) {
@@ -96,10 +96,10 @@ class WindowHandler {
}
//Update the touch support
- lib.config.multitouch_supported = nme_stage_get_multitouch_supported(lib.view_handle);
+ lib.config.multitouch_supported = lime_stage_get_multitouch_supported(lib.view_handle);
lib.config.multitouch = true;
//Enable it if needed
- nme_stage_set_multitouch_active(lib.view_handle, true);
+ lime_stage_set_multitouch_active(lib.view_handle, true);
#end //lime_native
@@ -109,8 +109,8 @@ class WindowHandler {
public function post_ready() {
#if lime_native
- //Set the stage handler for NME to send us events
- nme_set_stage_handler(lib.view_handle, lib.on_lime_event, lib.config.width, lib.config.height);
+ //Set the stage handler for lime to send us events
+ lime_set_stage_handler(lib.view_handle, lib.on_lime_event, lib.config.width, lib.config.height);
#end
#if lime_html5
@@ -147,8 +147,8 @@ class WindowHandler {
public function set_cursor_visible(val:Bool = true) {
#if lime_native
- if(nme_stage_show_cursor!=null) {
- nme_stage_show_cursor(lib.view_handle, val);
+ if(lime_stage_show_cursor!=null) {
+ lime_stage_show_cursor(lib.view_handle, val);
}
#end //lime_native
@@ -158,8 +158,8 @@ class WindowHandler {
public function constrain_cursor_to_window_frame( val:Bool = false ) {
#if lime_native
- if(nme_stage_constrain_cursor_to_window_frame!=null) {
- nme_stage_constrain_cursor_to_window_frame(lib.view_handle, val);
+ if(lime_stage_constrain_cursor_to_window_frame!=null) {
+ lime_stage_constrain_cursor_to_window_frame(lib.view_handle, val);
}
#end //lime_native
@@ -172,7 +172,7 @@ class WindowHandler {
public function set_window_position( x:Int, y:Int ) {
#if lime_native
- nme_stage_set_window_position(lib.view_handle, x, y);
+ lime_stage_set_window_position(lib.view_handle, x, y);
#end //lime_native
}
@@ -215,8 +215,8 @@ class WindowHandler {
public function set_cursor_position_in_window(_x:Int = 0, _y:Int = 0) {
#if lime_native
- if(nme_stage_set_cursor_position_in_window!=null) {
- nme_stage_set_cursor_position_in_window(lib.view_handle, _x, _y);
+ if(lime_stage_set_cursor_position_in_window!=null) {
+ lime_stage_set_cursor_position_in_window(lib.view_handle, _x, _y);
}
lib.input.last_mouse_x = _x;
lib.input.last_mouse_y = _y;
@@ -234,9 +234,9 @@ class WindowHandler {
//todo:
- //nmeOnResize(_event.x, _event.y);
+ //limeOnResize(_event.x, _event.y);
//if (renderRequest == null)
- // nmeRender(false);
+ // limeRender(false);
}
public function on_should_rotate( _event:Dynamic ) {
@@ -252,28 +252,28 @@ class WindowHandler {
//Called when the application wants to go to the background and stop
public function on_pause() {
#if lime_native
- nme_pause_animation();
+ lime_pause_animation();
#end //lime_native
} //on_pause
//Called when the application resumes operation from the background
public function on_resume() {
#if lime_native
- nme_resume_animation();
+ lime_resume_animation();
#end //lime_native
} //on_resume
// Terminates the process straight away, bypassing graceful shutdown
public function on_force_close() {
#if lime_native
- nme_terminate();
+ lime_terminate();
#end //lime_native
} //on_force_close
public function openURL( _url:String ) {
#if lime_native
- nme_get_url( _url );
+ lime_get_url( _url );
#end //lime_native
#if lime_html5
@@ -289,55 +289,55 @@ class WindowHandler {
public function fileDialogOpen(_title:String, _text:String) : String {
#if lime_native
- return nme_file_dialog_open(_title, _text, []);
+ return lime_file_dialog_open(_title, _text, []);
#else
return "";
#end
}
public function fileDialogSave(_title:String, _text:String) : String {
#if lime_native
- return nme_file_dialog_save(_title, _text, []);
+ return lime_file_dialog_save(_title, _text, []);
#else
return "";
#end
}
public function fileDialogFolder(_title:String, _text:String) : String {
#if lime_native
- return nme_file_dialog_folder(_title, _text);
+ return lime_file_dialog_folder(_title, _text);
#else
return "";
#end
}
-//nme functions
+//lime functions
#if lime_native
- private static var nme_stage_get_stage_width = Libs.load("nme","nme_stage_get_stage_width", 1);
- private static var nme_stage_get_stage_height = Libs.load("nme","nme_stage_get_stage_height", 1);
- private static var nme_set_stage_handler = Libs.load("nme","nme_set_stage_handler", 4);
- private static var nme_get_frame_stage = Libs.load("nme","nme_get_frame_stage", 1);
- private static var nme_create_main_frame = Libs.load("nme","nme_create_main_frame", -1);
- private static var nme_pause_animation = Libs.load("nme","nme_pause_animation", 0);
- private static var nme_resume_animation = Libs.load("nme","nme_resume_animation", 0);
- private static var nme_terminate = Libs.load("nme","nme_terminate", 0);
- private static var nme_close = Libs.load("nme","nme_close", 0);
- private static var nme_get_url = Libs.load("nme","nme_get_url", 1);
+ private static var lime_stage_get_stage_width = Libs.load("lime","lime_stage_get_stage_width", 1);
+ private static var lime_stage_get_stage_height = Libs.load("lime","lime_stage_get_stage_height", 1);
+ private static var lime_set_stage_handler = Libs.load("lime","lime_set_stage_handler", 4);
+ private static var lime_get_frame_stage = Libs.load("lime","lime_get_frame_stage", 1);
+ private static var lime_create_main_frame = Libs.load("lime","lime_create_main_frame", -1);
+ private static var lime_pause_animation = Libs.load("lime","lime_pause_animation", 0);
+ private static var lime_resume_animation = Libs.load("lime","lime_resume_animation", 0);
+ private static var lime_terminate = Libs.load("lime","lime_terminate", 0);
+ private static var lime_close = Libs.load("lime","lime_close", 0);
+ private static var lime_get_url = Libs.load("lime","lime_get_url", 1);
//File Dialogs
- private static var nme_file_dialog_save = Libs.load("nme", "nme_file_dialog_save", 3);
- private static var nme_file_dialog_open = Libs.load("nme", "nme_file_dialog_open", 3);
- private static var nme_file_dialog_folder = Libs.load("nme", "nme_file_dialog_folder", 2);
+ private static var lime_file_dialog_save = Libs.load("lime", "lime_file_dialog_save", 3);
+ private static var lime_file_dialog_open = Libs.load("lime", "lime_file_dialog_open", 3);
+ private static var lime_file_dialog_folder = Libs.load("lime", "lime_file_dialog_folder", 2);
//Cursor and window control (desktop only obviously)
- private static var nme_stage_set_window_position = Libs.load("nme","nme_stage_set_window_position", 3);
+ private static var lime_stage_set_window_position = Libs.load("lime","lime_stage_set_window_position", 3);
- private static var nme_stage_show_cursor = Libs.load("nme","nme_stage_show_cursor", 2);
- private static var nme_stage_constrain_cursor_to_window_frame = Libs.load("nme","nme_stage_constrain_cursor_to_window_frame", 2);
- private static var nme_stage_set_cursor_position_in_window = Libs.load("nme","nme_stage_set_cursor_position_in_window", 3);
+ private static var lime_stage_show_cursor = Libs.load("lime","lime_stage_show_cursor", 2);
+ private static var lime_stage_constrain_cursor_to_window_frame = Libs.load("lime","lime_stage_constrain_cursor_to_window_frame", 2);
+ private static var lime_stage_set_cursor_position_in_window = Libs.load("lime","lime_stage_set_cursor_position_in_window", 3);
//Multitouch
- private static var nme_stage_get_multitouch_supported = Libs.load("nme","nme_stage_get_multitouch_supported", 1);
- private static var nme_stage_set_multitouch_active = Libs.load("nme","nme_stage_set_multitouch_active", 2);
+ private static var lime_stage_get_multitouch_supported = Libs.load("lime","lime_stage_get_multitouch_supported", 1);
+ private static var lime_stage_set_multitouch_active = Libs.load("lime","lime_stage_set_multitouch_active", 2);
#end //lime_native
diff --git a/lime/gl/html5/GL.hx b/lime/gl/html5/GL.hx
index 5327e17bf..64edd3781 100644
--- a/lime/gl/html5/GL.hx
+++ b/lime/gl/html5/GL.hx
@@ -437,50 +437,50 @@ class GL {
public static var drawingBufferWidth(get_drawingBufferWidth, null):Int;
public static var version(get_version, null):Int;
- public static var nmeContext:RenderingContext;
+ public static var limeContext:RenderingContext;
public static function activeTexture(texture:Int):Void {
- nmeContext.activeTexture(texture);
+ limeContext.activeTexture(texture);
}
public static function attachShader(program:GLProgram, shader:GLShader):Void {
- nmeContext.attachShader(program, shader);
+ limeContext.attachShader(program, shader);
}
public static function bindAttribLocation(program:GLProgram, index:Int, name:String):Void {
- nmeContext.bindAttribLocation(program, index, name);
+ limeContext.bindAttribLocation(program, index, name);
}
/*
public static function bindBitmapDataTexture(texture:BitmapData):Void {
- if (texture.nmeGLTexture == null) {
+ if (texture.limeGLTexture == null) {
- texture.nmeGLTexture = nmeContext.createTexture();
- nmeContext.bindTexture(TEXTURE_2D, texture.nmeGLTexture);
+ texture.limeGLTexture = limeContext.createTexture();
+ limeContext.bindTexture(TEXTURE_2D, texture.limeGLTexture);
- nmeContext.texParameteri(TEXTURE_2D, TEXTURE_WRAP_S, CLAMP_TO_EDGE);
- nmeContext.texParameteri(TEXTURE_2D, TEXTURE_WRAP_T, CLAMP_TO_EDGE);
- nmeContext.texParameteri(TEXTURE_2D, TEXTURE_MIN_FILTER, NEAREST);
- nmeContext.texParameteri(TEXTURE_2D, TEXTURE_MAG_FILTER, NEAREST);
+ limeContext.texParameteri(TEXTURE_2D, TEXTURE_WRAP_S, CLAMP_TO_EDGE);
+ limeContext.texParameteri(TEXTURE_2D, TEXTURE_WRAP_T, CLAMP_TO_EDGE);
+ limeContext.texParameteri(TEXTURE_2D, TEXTURE_MIN_FILTER, NEAREST);
+ limeContext.texParameteri(TEXTURE_2D, TEXTURE_MAG_FILTER, NEAREST);
texture.lock();
- nmeContext.texImage2D(TEXTURE_2D, 0, RGBA, RGBA, UNSIGNED_BYTE, texture.nmeImageData);
+ limeContext.texImage2D(TEXTURE_2D, 0, RGBA, RGBA, UNSIGNED_BYTE, texture.limeImageData);
texture.unlock();
} else {
- nmeContext.bindTexture(TEXTURE_2D, texture.nmeGLTexture);
+ limeContext.bindTexture(TEXTURE_2D, texture.limeGLTexture);
}
@@ -489,63 +489,63 @@ class GL {
public static function bindBuffer(target:Int, buffer:GLBuffer):Void {
- nmeContext.bindBuffer(target, buffer);
+ limeContext.bindBuffer(target, buffer);
}
public static function bindFramebuffer(target:Int, framebuffer:GLFramebuffer):Void {
- nmeContext.bindFramebuffer(target, framebuffer);
+ limeContext.bindFramebuffer(target, framebuffer);
}
public static function bindRenderbuffer(target:Int, renderbuffer:GLRenderbuffer):Void {
- nmeContext.bindRenderbuffer(target, renderbuffer);
+ limeContext.bindRenderbuffer(target, renderbuffer);
}
public static function bindTexture(target:Int, texture:GLTexture):Void {
- nmeContext.bindTexture(target, texture);
+ limeContext.bindTexture(target, texture);
}
public static function blendColor(red:Float, green:Float, blue:Float, alpha:Float):Void {
- nmeContext.blendColor(red, green, blue, alpha);
+ limeContext.blendColor(red, green, blue, alpha);
}
public static function blendEquation(mode:Int):Void {
- nmeContext.blendEquation(mode);
+ limeContext.blendEquation(mode);
}
public static function blendEquationSeparate(modeRGB:Int, modeAlpha:Int):Void {
- nmeContext.blendEquationSeparate(modeRGB, modeAlpha);
+ limeContext.blendEquationSeparate(modeRGB, modeAlpha);
}
public static function blendFunc(sfactor:Int, dfactor:Int):Void {
- nmeContext.blendFunc(sfactor, dfactor);
+ limeContext.blendFunc(sfactor, dfactor);
}
public static function blendFuncSeparate(srcRGB:Int, dstRGB:Int, srcAlpha:Int, dstAlpha:Int):Void {
- nmeContext.blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
+ limeContext.blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
}
@@ -553,399 +553,399 @@ class GL {
//public static function bufferData(target:Int, data:IMemoryRange, usage:Int):Void {
public static function bufferData(target:Int, data:ArrayBufferView, usage:Int):Void {
- nmeContext.bufferData(target, data, usage);
+ limeContext.bufferData(target, data, usage);
}
public static function bufferSubData(target:Int, offset:Int, data:ArrayBufferView):Void {
- nmeContext.bufferSubData(target, offset, data);
+ limeContext.bufferSubData(target, offset, data);
}
public static function checkFramebufferStatus(target:Int):Int {
- return nmeContext.checkFramebufferStatus(target);
+ return limeContext.checkFramebufferStatus(target);
}
public static function clear(mask:Int):Void {
- nmeContext.clear(mask);
+ limeContext.clear(mask);
}
public static function clearColor(red:Float, green:Float, blue:Float, alpha:Float):Void {
- nmeContext.clearColor(red, green, blue, alpha);
+ limeContext.clearColor(red, green, blue, alpha);
}
public static function clearDepth(depth:Float):Void {
- nmeContext.clearDepth(depth);
+ limeContext.clearDepth(depth);
}
public static function clearStencil(s:Int):Void {
- nmeContext.clearStencil(s);
+ limeContext.clearStencil(s);
}
public static function colorMask(red:Bool, green:Bool, blue:Bool, alpha:Bool):Void {
- nmeContext.colorMask(red, green, blue, alpha);
+ limeContext.colorMask(red, green, blue, alpha);
}
public static function compileShader(shader:GLShader):Void {
- nmeContext.compileShader(shader);
+ limeContext.compileShader(shader);
}
public static function compressedTexImage2D(target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, data:ArrayBufferView):Void {
- nmeContext.compressedTexImage2D(target, level, internalformat, width, height, border, data);
+ limeContext.compressedTexImage2D(target, level, internalformat, width, height, border, data);
}
public static function compressedTexSubImage2D(target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, data:ArrayBufferView):Void {
- nmeContext.compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, data);
+ limeContext.compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, data);
}
public static function copyTexImage2D(target:Int, level:Int, internalformat:Int, x:Int, y:Int, width:Int, height:Int, border:Int):Void {
- nmeContext.copyTexImage2D(target, level, internalformat, x, y, width, height, border);
+ limeContext.copyTexImage2D(target, level, internalformat, x, y, width, height, border);
}
public static function copyTexSubImage2D(target:Int, level:Int, xoffset:Int, yoffset:Int, x:Int, y:Int, width:Int, height:Int):Void {
- nmeContext.copyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
+ limeContext.copyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
}
public static function createBuffer():GLBuffer {
- return nmeContext.createBuffer();
+ return limeContext.createBuffer();
}
public static function createFramebuffer():GLFramebuffer {
- return nmeContext.createFramebuffer();
+ return limeContext.createFramebuffer();
}
public static function createProgram():GLProgram {
- return nmeContext.createProgram();
+ return limeContext.createProgram();
}
public static function createRenderbuffer():GLRenderbuffer {
- return nmeContext.createRenderbuffer();
+ return limeContext.createRenderbuffer();
}
public static function createShader(type:Int):GLShader {
- return nmeContext.createShader(type);
+ return limeContext.createShader(type);
}
public static function createTexture():GLTexture {
- return nmeContext.createTexture();
+ return limeContext.createTexture();
}
public static function cullFace(mode:Int):Void {
- nmeContext.cullFace(mode);
+ limeContext.cullFace(mode);
}
public static function deleteBuffer(buffer:GLBuffer):Void {
- nmeContext.deleteBuffer(buffer);
+ limeContext.deleteBuffer(buffer);
}
public static function deleteFramebuffer(framebuffer:GLFramebuffer):Void {
- nmeContext.deleteFramebuffer(framebuffer);
+ limeContext.deleteFramebuffer(framebuffer);
}
public static function deleteProgram(program:GLProgram):Void {
- nmeContext.deleteProgram(program);
+ limeContext.deleteProgram(program);
}
public static function deleteRenderbuffer(renderbuffer:GLRenderbuffer):Void {
- nmeContext.deleteRenderbuffer(renderbuffer);
+ limeContext.deleteRenderbuffer(renderbuffer);
}
public static function deleteShader(shader:GLShader):Void {
- nmeContext.deleteShader(shader);
+ limeContext.deleteShader(shader);
}
public static function deleteTexture(texture:GLTexture):Void {
- nmeContext.deleteTexture(texture);
+ limeContext.deleteTexture(texture);
}
public static function depthFunc(func:Int):Void {
- nmeContext.depthFunc(func);
+ limeContext.depthFunc(func);
}
public static function depthMask(flag:Bool):Void {
- nmeContext.depthMask(flag);
+ limeContext.depthMask(flag);
}
public static function depthRange(zNear:Float, zFar:Float):Void {
- nmeContext.depthRange(zNear, zFar);
+ limeContext.depthRange(zNear, zFar);
}
public static function detachShader(program:GLProgram, shader:GLShader):Void {
- nmeContext.detachShader(program, shader);
+ limeContext.detachShader(program, shader);
}
public static function disable(cap:Int):Void {
- nmeContext.disable(cap);
+ limeContext.disable(cap);
}
public static function disableVertexAttribArray(index:Int):Void {
- nmeContext.disableVertexAttribArray(index);
+ limeContext.disableVertexAttribArray(index);
}
public static function drawArrays(mode:Int, first:Int, count:Int):Void {
- nmeContext.drawArrays(mode, first, count);
+ limeContext.drawArrays(mode, first, count);
}
public static function drawElements(mode:Int, count:Int, type:Int, offset:Int):Void {
- nmeContext.drawElements(mode, count, type, offset);
+ limeContext.drawElements(mode, count, type, offset);
}
public static function enable(cap:Int):Void {
- nmeContext.enable(cap);
+ limeContext.enable(cap);
}
public static function enableVertexAttribArray(index:Int):Void {
- nmeContext.enableVertexAttribArray(index);
+ limeContext.enableVertexAttribArray(index);
}
public static function finish():Void {
- nmeContext.finish();
+ limeContext.finish();
}
public static function flush():Void {
- nmeContext.flush();
+ limeContext.flush();
}
public static function framebufferRenderbuffer(target:Int, attachment:Int, renderbuffertarget:Int, renderbuffer:GLRenderbuffer):Void {
- nmeContext.framebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
+ limeContext.framebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
}
public static function framebufferTexture2D(target:Int, attachment:Int, textarget:Int, texture:GLTexture, level:Int):Void {
- nmeContext.framebufferTexture2D(target, attachment, textarget, texture, level);
+ limeContext.framebufferTexture2D(target, attachment, textarget, texture, level);
}
public static function frontFace(mode:Int):Void {
- nmeContext.frontFace(mode);
+ limeContext.frontFace(mode);
}
public static function generateMipmap(target:Int):Void {
- nmeContext.generateMipmap(target);
+ limeContext.generateMipmap(target);
}
public static function getActiveAttrib(program:GLProgram, index:Int):GLActiveInfo {
- return nmeContext.getActiveAttrib(program, index);
+ return limeContext.getActiveAttrib(program, index);
}
public static function getActiveUniform(program:GLProgram, index:Int):GLActiveInfo {
- return nmeContext.getActiveUniform(program, index);
+ return limeContext.getActiveUniform(program, index);
}
public static function getAttachedShaders(program:GLProgram):Array {
- return nmeContext.getAttachedShaders(program);
+ return limeContext.getAttachedShaders(program);
}
public static function getAttribLocation(program:GLProgram, name:String):Int {
- return nmeContext.getAttribLocation(program, name);
+ return limeContext.getAttribLocation(program, name);
}
public static function getBufferParameter(target:Int, pname:Int):Dynamic {
- return nmeContext.getBufferParameter(target, pname);
+ return limeContext.getBufferParameter(target, pname);
}
public static function getContextAttributes():GLContextAttributes {
- return nmeContext.getContextAttributes();
+ return limeContext.getContextAttributes();
}
public static function getError():Int {
- return nmeContext.getError();
+ return limeContext.getError();
}
public static function getExtension(name:String):Dynamic {
- return nmeContext.getExtension(name);
+ return limeContext.getExtension(name);
}
public static function getFramebufferAttachmentParameter(target:Int, attachment:Int, pname:Int):Dynamic {
- return nmeContext.getFramebufferAttachmentParameter(target, attachment, pname);
+ return limeContext.getFramebufferAttachmentParameter(target, attachment, pname);
}
public static function getParameter(pname:Int):Dynamic {
- return nmeContext.getParameter(pname);
+ return limeContext.getParameter(pname);
}
public static function getProgramInfoLog(program:GLProgram):String {
- return nmeContext.getProgramInfoLog(program);
+ return limeContext.getProgramInfoLog(program);
}
public static function getProgramParameter(program:GLProgram, pname:Int):Int {
- return nmeContext.getProgramParameter(program, pname);
+ return limeContext.getProgramParameter(program, pname);
}
public static function getRenderbufferParameter(target:Int, pname:Int):Dynamic {
- return nmeContext.getRenderbufferParameter(target, pname);
+ return limeContext.getRenderbufferParameter(target, pname);
}
public static function getShaderInfoLog(shader:GLShader):String {
- return nmeContext.getShaderInfoLog(shader);
+ return limeContext.getShaderInfoLog(shader);
}
public static function getShaderParameter(shader:GLShader, pname:Int):Int {
- return nmeContext.getShaderParameter(shader, pname);
+ return limeContext.getShaderParameter(shader, pname);
}
@@ -955,14 +955,14 @@ class GL {
// TODO
return null;
- //return nmeContext.getShader
+ //return limeContext.getShader
}
public static function getShaderSource(shader:GLShader):String {
- return nmeContext.getShaderSource(shader);
+ return limeContext.getShaderSource(shader);
}
@@ -972,56 +972,56 @@ class GL {
// TODO
return null;
- //return nmeContext.getSuppo
+ //return limeContext.getSuppo
}
public static function getTexParameter(target:Int, pname:Int):Dynamic {
- return nmeContext.getTexParameter(target, pname);
+ return limeContext.getTexParameter(target, pname);
}
public static function getUniform(program:GLProgram, location:GLUniformLocation):Dynamic {
- return nmeContext.getUniform(program, location);
+ return limeContext.getUniform(program, location);
}
public static function getUniformLocation(program:GLProgram, name:String):GLUniformLocation {
- return nmeContext.getUniformLocation(program, name);
+ return limeContext.getUniformLocation(program, name);
}
public static function getVertexAttrib(index:Int, pname:Int):Dynamic {
- return nmeContext.getVertexAttrib(index, pname);
+ return limeContext.getVertexAttrib(index, pname);
}
public static function getVertexAttribOffset(index:Int, pname:Int):Int {
- return nmeContext.getVertexAttribOffset(index, pname);
+ return limeContext.getVertexAttribOffset(index, pname);
}
public static function hint(target:Int, mode:Int):Void {
- nmeContext.hint(target, mode);
+ limeContext.hint(target, mode);
}
public static function isBuffer(buffer:GLBuffer):Bool {
- return nmeContext.isBuffer(buffer);
+ return limeContext.isBuffer(buffer);
}
@@ -1032,70 +1032,70 @@ class GL {
public static function isEnabled(cap:Int):Bool {
- return nmeContext.isEnabled(cap);
+ return limeContext.isEnabled(cap);
}
public static function isFramebuffer(framebuffer:GLFramebuffer):Bool {
- return nmeContext.isFramebuffer(framebuffer);
+ return limeContext.isFramebuffer(framebuffer);
}
public static function isProgram(program:GLProgram):Bool {
- return nmeContext.isProgram(program);
+ return limeContext.isProgram(program);
}
public static function isRenderbuffer(renderbuffer:GLRenderbuffer):Bool {
- return nmeContext.isRenderbuffer(renderbuffer);
+ return limeContext.isRenderbuffer(renderbuffer);
}
public static function isShader(shader:GLShader):Bool {
- return nmeContext.isShader(shader);
+ return limeContext.isShader(shader);
}
public static function isTexture(texture:GLTexture):Bool {
- return nmeContext.isTexture(texture);
+ return limeContext.isTexture(texture);
}
public static function lineWidth(width:Float):Void {
- nmeContext.lineWidth(width);
+ limeContext.lineWidth(width);
}
public static function linkProgram(program:GLProgram):Void {
- nmeContext.linkProgram(program);
+ limeContext.linkProgram(program);
}
public static function pixelStorei(pname:Int, param:Int):Void {
- nmeContext.pixelStorei(pname, param);
+ limeContext.pixelStorei(pname, param);
}
public static function polygonOffset(factor:Float, units:Float):Void {
- nmeContext.polygonOffset(factor, units);
+ limeContext.polygonOffset(factor, units);
}
@@ -1104,329 +1104,329 @@ class GL {
// TODO: pixels? May need setting to work (canvas.getContext("experimental-webgl", {preserveDrawingBuffer: true});)
- nmeContext.readPixels(x, y, width, height, format, type, pixels);
+ limeContext.readPixels(x, y, width, height, format, type, pixels);
}
public static function renderbufferStorage(target:Int, internalformat:Int, width:Int, height:Int):Void {
- nmeContext.renderbufferStorage(target, internalformat, width, height);
+ limeContext.renderbufferStorage(target, internalformat, width, height);
}
public static function sampleCoverage(value:Float, invert:Bool):Void {
- nmeContext.sampleCoverage(value, invert);
+ limeContext.sampleCoverage(value, invert);
}
public static function scissor(x:Int, y:Int, width:Int, height:Int):Void {
- nmeContext.scissor(x, y, width, height);
+ limeContext.scissor(x, y, width, height);
}
public static function shaderSource(shader:GLShader, source:String):Void {
- nmeContext.shaderSource(shader, source);
+ limeContext.shaderSource(shader, source);
}
public static function stencilFunc(func:Int, ref:Int, mask:Int):Void {
- nmeContext.stencilFunc(func, ref, mask);
+ limeContext.stencilFunc(func, ref, mask);
}
public static function stencilFuncSeparate(face:Int, func:Int, ref:Int, mask:Int):Void {
- nmeContext.stencilFuncSeparate(face, func, ref, mask);
+ limeContext.stencilFuncSeparate(face, func, ref, mask);
}
public static function stencilMask(mask:Int):Void {
- nmeContext.stencilMask(mask);
+ limeContext.stencilMask(mask);
}
public static function stencilMaskSeparate(face:Int, mask:Int):Void {
- nmeContext.stencilMaskSeparate(face, mask);
+ limeContext.stencilMaskSeparate(face, mask);
}
public static function stencilOp(fail:Int, zfail:Int, zpass:Int):Void {
- nmeContext.stencilOp(fail, zfail, zpass);
+ limeContext.stencilOp(fail, zfail, zpass);
}
public static function stencilOpSeparate(face:Int, fail:Int, zfail:Int, zpass:Int):Void {
- nmeContext.stencilOpSeparate(face, fail, zfail, zpass);
+ limeContext.stencilOpSeparate(face, fail, zfail, zpass);
}
public static function texImage2D(target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, format:Int, type:Int, pixels:ArrayBufferView):Void {
- nmeContext.texImage2D(target, level, internalformat, width, height, border, format, type, pixels);
+ limeContext.texImage2D(target, level, internalformat, width, height, border, format, type, pixels);
}
public static function texParameterf(target:Int, pname:Int, param:Float):Void {
- nmeContext.texParameterf(target, pname, param);
+ limeContext.texParameterf(target, pname, param);
}
public static function texParameteri(target:Int, pname:Int, param:Int):Void {
- nmeContext.texParameteri(target, pname, param);
+ limeContext.texParameteri(target, pname, param);
}
public static function texSubImage2D(target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, type:Int, pixels:ArrayBufferView):Void {
- nmeContext.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
+ limeContext.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
}
public static function uniform1f(location:GLUniformLocation, x:Float):Void {
- nmeContext.uniform1f(location, x);
+ limeContext.uniform1f(location, x);
}
public static function uniform1fv(location:GLUniformLocation, x:Float32Array):Void {
- nmeContext.uniform1fv(location, x);
+ limeContext.uniform1fv(location, x);
}
public static function uniform1i(location:GLUniformLocation, x:Int):Void {
- nmeContext.uniform1i(location, x);
+ limeContext.uniform1i(location, x);
}
public static function uniform1iv(location:GLUniformLocation, v:Int32Array):Void {
- nmeContext.uniform1iv(location, v);
+ limeContext.uniform1iv(location, v);
}
public static function uniform2f(location:GLUniformLocation, x:Float, y:Float):Void {
- nmeContext.uniform2f(location, x, y);
+ limeContext.uniform2f(location, x, y);
}
public static function uniform2fv(location:GLUniformLocation, v:Float32Array):Void {
- nmeContext.uniform2fv(location, v);
+ limeContext.uniform2fv(location, v);
}
public static function uniform2i(location:GLUniformLocation, x:Int, y:Int):Void {
- nmeContext.uniform2i(location, x, y);
+ limeContext.uniform2i(location, x, y);
}
public static function uniform2iv(location:GLUniformLocation, v:Int32Array):Void {
- nmeContext.uniform2iv(location, v);
+ limeContext.uniform2iv(location, v);
}
public static function uniform3f(location:GLUniformLocation, x:Float, y:Float, z:Float):Void {
- nmeContext.uniform3f(location, x, y, z);
+ limeContext.uniform3f(location, x, y, z);
}
public static function uniform3fv(location:GLUniformLocation, v:Float32Array):Void {
- nmeContext.uniform3fv(location, v);
+ limeContext.uniform3fv(location, v);
}
public static function uniform3i(location:GLUniformLocation, x:Int, y:Int, z:Int):Void {
- nmeContext.uniform3i(location, x, y, z);
+ limeContext.uniform3i(location, x, y, z);
}
public static function uniform3iv(location:GLUniformLocation, v:Int32Array):Void {
- nmeContext.uniform3iv(location, v);
+ limeContext.uniform3iv(location, v);
}
public static function uniform4f(location:GLUniformLocation, x:Float, y:Float, z:Float, w:Float):Void {
- nmeContext.uniform4f(location, x, y, z, w);
+ limeContext.uniform4f(location, x, y, z, w);
}
public static function uniform4fv(location:GLUniformLocation, v:Float32Array):Void {
- nmeContext.uniform4fv(location, v);
+ limeContext.uniform4fv(location, v);
}
public static function uniform4i(location:GLUniformLocation, x:Int, y:Int, z:Int, w:Int):Void {
- nmeContext.uniform4i(location, x, y, z, w);
+ limeContext.uniform4i(location, x, y, z, w);
}
public static function uniform4iv(location:GLUniformLocation, v:Int32Array):Void {
- nmeContext.uniform4iv(location, v);
+ limeContext.uniform4iv(location, v);
}
public static function uniformMatrix2fv(location:GLUniformLocation, transpose:Bool, v:Float32Array):Void {
- nmeContext.uniformMatrix2fv(location, transpose, v);
+ limeContext.uniformMatrix2fv(location, transpose, v);
}
public static function uniformMatrix3fv(location:GLUniformLocation, transpose:Bool, v:Float32Array):Void {
- nmeContext.uniformMatrix3fv(location, transpose, v);
+ limeContext.uniformMatrix3fv(location, transpose, v);
}
public static function uniformMatrix4fv(location:GLUniformLocation, transpose:Bool, v:Float32Array):Void {
- nmeContext.uniformMatrix4fv(location, transpose, v);
+ limeContext.uniformMatrix4fv(location, transpose, v);
}
public static function uniformMatrix3D(location:GLUniformLocation, transpose:Bool, matrix:Matrix3D):Void {
- nmeContext.uniformMatrix4fv(location, transpose, new Float32Array(matrix.rawData));
+ limeContext.uniformMatrix4fv(location, transpose, new Float32Array(matrix.rawData));
}
public static function useProgram(program:GLProgram):Void {
- nmeContext.useProgram(program);
+ limeContext.useProgram(program);
}
public static function validateProgram(program:GLProgram):Void {
- nmeContext.validateProgram(program);
+ limeContext.validateProgram(program);
}
public static function vertexAttrib1f(indx:Int, x:Float):Void {
- nmeContext.vertexAttrib1f(indx, x);
+ limeContext.vertexAttrib1f(indx, x);
}
public static function vertexAttrib1fv(indx:Int, values:Float32Array):Void {
- nmeContext.vertexAttrib1fv(indx, values);
+ limeContext.vertexAttrib1fv(indx, values);
}
public static function vertexAttrib2f(indx:Int, x:Float, y:Float):Void {
- nmeContext.vertexAttrib2f(indx, x, y);
+ limeContext.vertexAttrib2f(indx, x, y);
}
public static function vertexAttrib2fv(indx:Int, values:Float32Array):Void {
- nmeContext.vertexAttrib2fv(indx, values);
+ limeContext.vertexAttrib2fv(indx, values);
}
public static function vertexAttrib3f(indx:Int, x:Float, y:Float, z:Float):Void {
- nmeContext.vertexAttrib3f(indx, x, y, z);
+ limeContext.vertexAttrib3f(indx, x, y, z);
}
public static function vertexAttrib3fv(indx:Int, values:Float32Array):Void {
- nmeContext.vertexAttrib3fv(indx, values);
+ limeContext.vertexAttrib3fv(indx, values);
}
public static function vertexAttrib4f(indx:Int, x:Float, y:Float, z:Float, w:Float):Void {
- nmeContext.vertexAttrib4f(indx, x, y, z, w);
+ limeContext.vertexAttrib4f(indx, x, y, z, w);
}
public static function vertexAttrib4fv(indx:Int, values:Float32Array):Void {
- nmeContext.vertexAttrib4fv(indx, values);
+ limeContext.vertexAttrib4fv(indx, values);
}
public static function vertexAttribPointer(indx:Int, size:Int, type:Int, normalized:Bool, stride:Int, offset:Int):Void {
- nmeContext.vertexAttribPointer(indx, size, type, normalized, stride, offset);
+ limeContext.vertexAttribPointer(indx, size, type, normalized, stride, offset);
}
public static function viewport(x:Int, y:Int, width:Int, height:Int):Void {
- nmeContext.viewport(x, y, width, height);
+ limeContext.viewport(x, y, width, height);
}
diff --git a/lime/gl/native/Ext.hx b/lime/gl/native/Ext.hx
index 42d14716a..45f1e7a41 100644
--- a/lime/gl/native/Ext.hx
+++ b/lime/gl/native/Ext.hx
@@ -6,13 +6,13 @@ class Ext {
public static function drawBuffers( n:Int, buffers:Int ){
#if luxe_gl_extensions
- return nme_gl_ext_draw_buffers( n, buffers );
+ return lime_gl_ext_draw_buffers( n, buffers );
#end
}
private static function load(inName:String, inArgCount:Int):Dynamic {
try {
- return Libs.load("nme", inName, inArgCount);
+ return Libs.load("lime", inName, inArgCount);
} catch(e:Dynamic) {
trace(e); return null;
}
@@ -56,7 +56,7 @@ class Ext {
public static inline var MAX_DRAW_BUFFERS = 0x8824;
#if luxe_gl_extensions
- private static var nme_gl_ext_draw_buffers = load("nme_gl_ext_draw_buffers", 2);
+ private static var lime_gl_ext_draw_buffers = load("lime_gl_ext_draw_buffers", 2);
#end
}
diff --git a/lime/gl/native/GL.hx b/lime/gl/native/GL.hx
index add032bef..5aab87588 100644
--- a/lime/gl/native/GL.hx
+++ b/lime/gl/native/GL.hx
@@ -432,163 +432,163 @@ class GL {
public static var drawingBufferWidth(get_drawingBufferWidth, null):Int;
public static var version(get_version, null):Int;
- public static function activeTexture(texture:Int):Void { nme_gl_active_texture(texture); }
+ public static function activeTexture(texture:Int):Void { lime_gl_active_texture(texture); }
public static function attachShader(program:GLProgram, shader:GLShader):Void
{
program.attach(shader);
- nme_gl_attach_shader(program.id, shader.id);
+ lime_gl_attach_shader(program.id, shader.id);
}
public static function bindAttribLocation(program:GLProgram, index:Int, name:String):Void
{
- nme_gl_bind_attrib_location(program.id, index, name);
+ lime_gl_bind_attrib_location(program.id, index, name);
}
//todo sven
// public static function bindBitmapDataTexture(texture:BitmapData):Void
// {
- // nme_gl_bind_bitmap_data_texture(texture.__handle);
+ // lime_gl_bind_bitmap_data_texture(texture.__handle);
// }
public static function bindBuffer(target:Int, buffer:GLBuffer):Void
{
- nme_gl_bind_buffer(target, buffer == null ? 0 : buffer.id);
+ lime_gl_bind_buffer(target, buffer == null ? 0 : buffer.id);
}
public static function bindFramebuffer(target:Int, framebuffer:GLFramebuffer):Void
{
- nme_gl_bind_framebuffer(target, framebuffer == null ? 0 : framebuffer.id);
+ lime_gl_bind_framebuffer(target, framebuffer == null ? 0 : framebuffer.id);
}
public static function bindRenderbuffer(target:Int, renderbuffer:GLRenderbuffer):Void
{
- nme_gl_bind_renderbuffer(target, renderbuffer == null ? 0 : renderbuffer.id);
+ lime_gl_bind_renderbuffer(target, renderbuffer == null ? 0 : renderbuffer.id);
}
public static function bindTexture(target:Int, texture:GLTexture):Void
{
- nme_gl_bind_texture(target, texture == null ? 0 : texture.id);
+ lime_gl_bind_texture(target, texture == null ? 0 : texture.id);
}
public static function blendColor(red:Float, green:Float, blue:Float, alpha:Float):Void
{
- nme_gl_blend_color(red, green, blue, alpha);
+ lime_gl_blend_color(red, green, blue, alpha);
}
public static function blendEquation(mode:Int):Void
{
- nme_gl_blend_equation(mode);
+ lime_gl_blend_equation(mode);
}
public static function blendEquationSeparate(modeRGB:Int, modeAlpha:Int):Void
{
- nme_gl_blend_equation_separate(modeRGB, modeAlpha);
+ lime_gl_blend_equation_separate(modeRGB, modeAlpha);
}
public static function blendFunc(sfactor:Int, dfactor:Int):Void
{
- nme_gl_blend_func(sfactor, dfactor);
+ lime_gl_blend_func(sfactor, dfactor);
}
public static function blendFuncSeparate(srcRGB:Int, dstRGB:Int, srcAlpha:Int, dstAlpha:Int):Void
{
- nme_gl_blend_func_separate(srcRGB, dstRGB, srcAlpha, dstAlpha);
+ lime_gl_blend_func_separate(srcRGB, dstRGB, srcAlpha, dstAlpha);
}
public static function bufferData(target:Int, data:IMemoryRange, usage:Int):Void
{
- nme_gl_buffer_data(target, data.getByteBuffer(), data.getStart(), data.getLength(), usage);
+ lime_gl_buffer_data(target, data.getByteBuffer(), data.getStart(), data.getLength(), usage);
}
public static function bufferSubData(target:Int, offset:Int, data:IMemoryRange ):Void
{
- nme_gl_buffer_sub_data( target, offset, data.getByteBuffer(), data.getStart(), data.getLength() );
+ lime_gl_buffer_sub_data( target, offset, data.getByteBuffer(), data.getStart(), data.getLength() );
}
public static function checkFramebufferStatus(target:Int):Int
{
- return nme_gl_check_framebuffer_status(target);
+ return lime_gl_check_framebuffer_status(target);
}
public static function clear(mask:Int):Void
{
- nme_gl_clear(mask);
+ lime_gl_clear(mask);
}
public static function clearColor(red:Float, green:Float, blue:Float, alpha:Float):Void
{
- nme_gl_clear_color(red, green, blue, alpha);
+ lime_gl_clear_color(red, green, blue, alpha);
}
public static function clearDepth(depth:Float):Void
{
- nme_gl_clear_depth(depth);
+ lime_gl_clear_depth(depth);
}
public static function clearStencil(s:Int):Void
{
- nme_gl_clear_stencil(s);
+ lime_gl_clear_stencil(s);
}
public static function colorMask(red:Bool, green:Bool, blue:Bool, alpha:Bool):Void
{
- nme_gl_color_mask(red, green, blue, alpha);
+ lime_gl_color_mask(red, green, blue, alpha);
}
public static function compileShader(shader:GLShader):Void
{
- nme_gl_compile_shader(shader.id);
+ lime_gl_compile_shader(shader.id);
}
public static function compressedTexImage2D(target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, data:IMemoryRange):Void
{
- nme_gl_compressed_tex_image_2d(target, level, internalformat, width, height, border, data == null ? null : data.getByteBuffer(), data == null ? null : data.getStart());
+ lime_gl_compressed_tex_image_2d(target, level, internalformat, width, height, border, data == null ? null : data.getByteBuffer(), data == null ? null : data.getStart());
}
public static function compressedTexSubImage2D(target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, data:IMemoryRange):Void
{
- nme_gl_compressed_tex_sub_image_2d(target, level, xoffset, yoffset, width, height, format, data == null ? null : data.getByteBuffer(), data == null ? null : data.getStart());
+ lime_gl_compressed_tex_sub_image_2d(target, level, xoffset, yoffset, width, height, format, data == null ? null : data.getByteBuffer(), data == null ? null : data.getStart());
}
public static function copyTexImage2D(target:Int, level:Int, internalformat:Int, x:Int, y:Int, width:Int, height:Int, border:Int):Void
{
- nme_gl_copy_tex_image_2d(target, level, internalformat, x, y, width, height, border);
+ lime_gl_copy_tex_image_2d(target, level, internalformat, x, y, width, height, border);
}
public static function copyTexSubImage2D(target:Int, level:Int, xoffset:Int, yoffset:Int, x:Int, y:Int, width:Int, height:Int):Void
{
- nme_gl_copy_tex_sub_image_2d(target, level, xoffset, yoffset, x, y, width, height);
+ lime_gl_copy_tex_sub_image_2d(target, level, xoffset, yoffset, x, y, width, height);
}
public static function createBuffer():GLBuffer
{
- return new GLBuffer(version, nme_gl_create_buffer());
+ return new GLBuffer(version, lime_gl_create_buffer());
}
public static function createFramebuffer():GLFramebuffer
{
- return new GLFramebuffer(version, nme_gl_create_framebuffer());
+ return new GLFramebuffer(version, lime_gl_create_framebuffer());
}
public static function createProgram():GLProgram
{
- return new GLProgram(version, nme_gl_create_program());
+ return new GLProgram(version, lime_gl_create_program());
}
public static function createRenderbuffer():GLRenderbuffer
{
- return new GLRenderbuffer(version, nme_gl_create_render_buffer());
+ return new GLRenderbuffer(version, lime_gl_create_render_buffer());
}
public static function createShader(type:Int):GLShader
{
- return new GLShader(version, nme_gl_create_shader(type));
+ return new GLShader(version, lime_gl_create_shader(type));
}
public static function createTexture():GLTexture
{
- return new GLTexture(version, nme_gl_create_texture());
+ return new GLTexture(version, lime_gl_create_texture());
}
public static function cullFace(mode:Int):Void
@@ -597,7 +597,7 @@ class GL {
public static function deleteBuffer(buffer:GLBuffer):Void
{
- nme_gl_delete_buffer(buffer.id);
+ lime_gl_delete_buffer(buffer.id);
buffer.invalidate();
}
@@ -607,7 +607,7 @@ class GL {
public static function deleteProgram(program:GLProgram):Void
{
- nme_gl_delete_program(program.id);
+ lime_gl_delete_program(program.id);
program.invalidate();
}
@@ -617,104 +617,104 @@ class GL {
public static function deleteShader(shader:GLShader):Void
{
- nme_gl_delete_shader(shader.id);
+ lime_gl_delete_shader(shader.id);
shader.invalidate();
}
public static function deleteTexture(texture:GLTexture):Void
{
- nme_gl_delete_texture(texture.id);
+ lime_gl_delete_texture(texture.id);
texture.invalidate();
}
public static function depthFunc(func:Int):Void
{
- nme_gl_depth_func(func);
+ lime_gl_depth_func(func);
}
public static function depthMask(flag:Bool):Void
{
- nme_gl_depth_mask(flag);
+ lime_gl_depth_mask(flag);
}
public static function depthRange(zNear:Float, zFar:Float):Void
{
- nme_gl_depth_range(zNear, zFar);
+ lime_gl_depth_range(zNear, zFar);
}
public static function detachShader(program:GLProgram, shader:GLShader):Void
{
- nme_gl_detach_shader(program.id, shader.id);
+ lime_gl_detach_shader(program.id, shader.id);
}
public static function disable(cap:Int):Void
{
- nme_gl_disable(cap);
+ lime_gl_disable(cap);
}
public static function disableVertexAttribArray(index:Int):Void
{
- nme_gl_disable_vertex_attrib_array(index);
+ lime_gl_disable_vertex_attrib_array(index);
}
public static function drawArrays(mode:Int, first:Int, count:Int):Void
{
- nme_gl_draw_arrays(mode, first, count);
+ lime_gl_draw_arrays(mode, first, count);
}
public static function drawElements(mode:Int, count:Int, type:Int, offset:Int):Void
{
- nme_gl_draw_elements(mode, count, type, offset);
+ lime_gl_draw_elements(mode, count, type, offset);
}
public static function enable(cap:Int):Void
{
- nme_gl_enable(cap);
+ lime_gl_enable(cap);
}
public static function enableVertexAttribArray(index:Int):Void
{
- nme_gl_enable_vertex_attrib_array(index);
+ lime_gl_enable_vertex_attrib_array(index);
}
public static function finish():Void
{
- nme_gl_finish();
+ lime_gl_finish();
}
public static function flush():Void
{
- nme_gl_flush();
+ lime_gl_flush();
}
public static function framebufferRenderbuffer(target:Int, attachment:Int, renderbuffertarget:Int, renderbuffer:GLRenderbuffer):Void
{
- nme_gl_framebuffer_renderbuffer(target, attachment, renderbuffertarget, renderbuffer.id);
+ lime_gl_framebuffer_renderbuffer(target, attachment, renderbuffertarget, renderbuffer.id);
}
public static function framebufferTexture2D(target:Int, attachment:Int, textarget:Int, texture:GLTexture, level:Int):Void
{
- nme_gl_framebuffer_texture2D(target, attachment, textarget, texture.id, level);
+ lime_gl_framebuffer_texture2D(target, attachment, textarget, texture.id, level);
}
public static function frontFace(mode:Int):Void
{
- nme_gl_front_face(mode);
+ lime_gl_front_face(mode);
}
public static function generateMipmap(target:Int):Void
{
- nme_gl_generate_mipmap(target);
+ lime_gl_generate_mipmap(target);
}
public static function getActiveAttrib(program:GLProgram, index:Int):GLActiveInfo
{
- return nme_gl_get_active_attrib(program.id, index);
+ return lime_gl_get_active_attrib(program.id, index);
}
public static function getActiveUniform(program:GLProgram, index:Int):GLActiveInfo
{
- return nme_gl_get_active_uniform(program.id, index);
+ return lime_gl_get_active_uniform(program.id, index);
}
public static function getAttachedShaders(program:GLProgram):Array
@@ -724,17 +724,17 @@ class GL {
public static function getAttribLocation(program:GLProgram, name:String):Int
{
- return nme_gl_get_attrib_location(program.id, name);
+ return lime_gl_get_attrib_location(program.id, name);
}
public static function getBufferParameter(target:Int, pname:Int):Dynamic
{
- return nme_gl_get_buffer_paramerter(target, pname);
+ return lime_gl_get_buffer_paramerter(target, pname);
}
public static function getContextAttributes():GLContextAttributes
{
- var base = nme_gl_get_context_attributes();
+ var base = lime_gl_get_context_attributes();
base.premultipliedAlpha = false;
base.preserveDrawingBuffer = false;
return base;
@@ -742,150 +742,150 @@ class GL {
public static function getError():Int
{
- return nme_gl_get_error();
+ return lime_gl_get_error();
}
public static function getExtension(name:String):Dynamic
{
//todo?!
return null;
- // return nme_gl_get_extension(name);
+ // return lime_gl_get_extension(name);
}
public static function getFramebufferAttachmentParameter(target:Int, attachment:Int, pname:Int):Dynamic
{
- return nme_gl_get_framebuffer_attachment_parameter(target, attachment, pname);
+ return lime_gl_get_framebuffer_attachment_parameter(target, attachment, pname);
}
public static function getParameter(pname:Int):Dynamic
{
- return nme_gl_get_parameter(pname);
+ return lime_gl_get_parameter(pname);
}
public static function getProgramInfoLog(program:GLProgram):String
{
- return nme_gl_get_program_info_log(program.id);
+ return lime_gl_get_program_info_log(program.id);
}
public static function getProgramParameter(program:GLProgram, pname:Int):Int
{
- return nme_gl_get_program_parameter(program.id, pname);
+ return lime_gl_get_program_parameter(program.id, pname);
}
public static function getRenderbufferParameter(target:Int, pname:Int):Dynamic
{
- return nme_gl_get_render_buffer_parameter(target, pname);
+ return lime_gl_get_render_buffer_parameter(target, pname);
}
public static function getShaderInfoLog(shader:GLShader):String
{
- return nme_gl_get_shader_info_log(shader.id);
+ return lime_gl_get_shader_info_log(shader.id);
}
public static function getShaderParameter(shader:GLShader, pname:Int):Int
{
- return nme_gl_get_shader_parameter(shader.id, pname);
+ return lime_gl_get_shader_parameter(shader.id, pname);
}
public static function getShaderPrecisionFormat(shadertype:Int, precisiontype:Int):ShaderPrecisionFormat
{
- return nme_gl_get_shader_precision_format(shadertype, precisiontype);
+ return lime_gl_get_shader_precision_format(shadertype, precisiontype);
}
public static function getShaderSource(shader:GLShader):String
{
- return nme_gl_get_shader_source(shader.id);
+ return lime_gl_get_shader_source(shader.id);
}
public static function getSupportedExtensions():Array
{
var result = new Array();
- nme_gl_get_supported_extensions(result);
+ lime_gl_get_supported_extensions(result);
return result;
}
public static function getTexParameter(target:Int, pname:Int):Dynamic
{
- return nme_gl_get_tex_parameter(target, pname);
+ return lime_gl_get_tex_parameter(target, pname);
}
public static function getUniform(program:GLProgram, location:GLUniformLocation):Dynamic
{
- return nme_gl_get_uniform(program.id, location);
+ return lime_gl_get_uniform(program.id, location);
}
public static function getUniformLocation(program:GLProgram, name:String):Dynamic
{
- return nme_gl_get_uniform_location(program.id, name);
+ return lime_gl_get_uniform_location(program.id, name);
}
public static function getVertexAttrib(index:Int, pname:Int):Dynamic
{
- return nme_gl_get_vertex_attrib(index, pname);
+ return lime_gl_get_vertex_attrib(index, pname);
}
public static function getVertexAttribOffset(index:Int, pname:Int):Int
{
- return nme_gl_get_vertex_attrib_offset(index, pname);
+ return lime_gl_get_vertex_attrib_offset(index, pname);
}
public static function hint(target:Int, mode:Int):Void
{
- nme_gl_hint(target, mode);
+ lime_gl_hint(target, mode);
}
public static function isBuffer(buffer:GLBuffer):Bool
{
- return buffer != null && buffer.id > 0 && nme_gl_is_buffer(buffer.id);
+ return buffer != null && buffer.id > 0 && lime_gl_is_buffer(buffer.id);
}
// This is non-static
// public function isContextLost():Bool { return false; }
public static function isEnabled(cap:Int):Bool
{
- return nme_gl_is_enabled(cap);
+ return lime_gl_is_enabled(cap);
}
public static function isFramebuffer(framebuffer:GLFramebuffer):Bool
{
- return framebuffer != null && framebuffer.id > 0 && nme_gl_is_framebuffer(framebuffer.id);
+ return framebuffer != null && framebuffer.id > 0 && lime_gl_is_framebuffer(framebuffer.id);
}
public static function isProgram(program:GLProgram):Bool
{
- return program != null && program.id > 0 && nme_gl_is_program(program.id);
+ return program != null && program.id > 0 && lime_gl_is_program(program.id);
}
public static function isRenderbuffer(renderbuffer:GLRenderbuffer):Bool
{
- return renderbuffer != null && renderbuffer.id > 0 && nme_gl_is_renderbuffer(renderbuffer.id);
+ return renderbuffer != null && renderbuffer.id > 0 && lime_gl_is_renderbuffer(renderbuffer.id);
}
public static function isShader(shader:GLShader):Bool
{
- return shader != null && shader.id > 0 && nme_gl_is_shader(shader.id);
+ return shader != null && shader.id > 0 && lime_gl_is_shader(shader.id);
}
public static function isTexture(texture:GLTexture):Bool
{
- return texture != null && texture.id > 0 && nme_gl_is_texture(texture.id);
+ return texture != null && texture.id > 0 && lime_gl_is_texture(texture.id);
}
public static function lineWidth(width:Float):Void
{
- nme_gl_line_width(width);
+ lime_gl_line_width(width);
}
public static function linkProgram(program:GLProgram):Void
{
- nme_gl_link_program(program.id);
+ lime_gl_link_program(program.id);
}
private static function load(inName:String, inArgCount:Int):Dynamic
{
try
{
- return Libs.load("nme", inName, inArgCount);
+ return Libs.load("lime", inName, inArgCount);
} catch(e:Dynamic)
{
@@ -896,12 +896,12 @@ class GL {
public static function pixelStorei(pname:Int, param:Int):Void
{
- nme_gl_pixel_storei(pname, param);
+ lime_gl_pixel_storei(pname, param);
}
public static function polygonOffset(factor:Float, units:Float):Void
{
- nme_gl_polygon_offset(factor, units);
+ lime_gl_polygon_offset(factor, units);
}
//todo sven
@@ -911,232 +911,232 @@ class GL {
public static function renderbufferStorage(target:Int, internalformat:Int, width:Int, height:Int):Void
{
- nme_gl_renderbuffer_storage(target, internalformat, width, height);
+ lime_gl_renderbuffer_storage(target, internalformat, width, height);
}
public static function sampleCoverage(value:Float, invert:Bool):Void
{
- nme_gl_sample_coverage(value, invert);
+ lime_gl_sample_coverage(value, invert);
}
public static function scissor(x:Int, y:Int, width:Int, height:Int):Void
{
- nme_gl_scissor(x, y, width, height);
+ lime_gl_scissor(x, y, width, height);
}
public static function shaderSource(shader:GLShader, source:String):Void
{
- nme_gl_shader_source(shader.id, source);
+ lime_gl_shader_source(shader.id, source);
}
public static function stencilFunc(func:Int, ref:Int, mask:Int):Void
{
- nme_gl_stencil_func(func, ref, mask);
+ lime_gl_stencil_func(func, ref, mask);
}
public static function stencilFuncSeparate(face:Int, func:Int, ref:Int, mask:Int):Void
{
- nme_gl_stencil_func_separate(face, func, ref, mask);
+ lime_gl_stencil_func_separate(face, func, ref, mask);
}
public static function stencilMask(mask:Int):Void
{
- nme_gl_stencil_mask(mask);
+ lime_gl_stencil_mask(mask);
}
public static function stencilMaskSeparate(face:Int, mask:Int):Void
{
- nme_gl_stencil_mask_separate(face, mask);
+ lime_gl_stencil_mask_separate(face, mask);
}
public static function stencilOp(fail:Int, zfail:Int, zpass:Int):Void
{
- nme_gl_stencil_op(fail, zfail, zpass);
+ lime_gl_stencil_op(fail, zfail, zpass);
}
public static function stencilOpSeparate(face:Int, fail:Int, zfail:Int, zpass:Int):Void
{
- nme_gl_stencil_op_separate(face, fail, zfail, zpass);
+ lime_gl_stencil_op_separate(face, fail, zfail, zpass);
}
public static function texImage2D(target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, format:Int, type:Int, pixels:ArrayBufferView):Void
{
- nme_gl_tex_image_2d(target, level, internalformat, width, height, border, format, type, pixels == null ? null : pixels.getByteBuffer(), pixels == null ? null : pixels.getStart());
+ lime_gl_tex_image_2d(target, level, internalformat, width, height, border, format, type, pixels == null ? null : pixels.getByteBuffer(), pixels == null ? null : pixels.getStart());
}
public static function texParameterf(target:Int, pname:Int, param:Float):Void
{
- nme_gl_tex_parameterf(target, pname, param);
+ lime_gl_tex_parameterf(target, pname, param);
}
public static function texParameteri(target:Int, pname:Int, param:Int):Void
{
- nme_gl_tex_parameteri(target, pname, param);
+ lime_gl_tex_parameteri(target, pname, param);
}
public static function texSubImage2D(target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, type:Int, pixels:ArrayBufferView):Void
{
- nme_gl_tex_sub_image_2d(target, level, xoffset, yoffset, width, height, format, type, pixels == null ? null : pixels.getByteBuffer(), pixels == null ? null : pixels.getStart());
+ lime_gl_tex_sub_image_2d(target, level, xoffset, yoffset, width, height, format, type, pixels == null ? null : pixels.getByteBuffer(), pixels == null ? null : pixels.getStart());
}
public static function uniform1f(location:GLUniformLocation, x:Float):Void
{
- nme_gl_uniform1f(location, x);
+ lime_gl_uniform1f(location, x);
}
public static function uniform1fv(location:GLUniformLocation, x:Array):Void
{
- nme_gl_uniform1fv(location, x);
+ lime_gl_uniform1fv(location, x);
}
public static function uniform1i(location:GLUniformLocation, x:Int):Void
{
- nme_gl_uniform1i(location, x);
+ lime_gl_uniform1i(location, x);
}
public static function uniform1iv(location:GLUniformLocation, v:Array):Void
{
- nme_gl_uniform1iv(location, v);
+ lime_gl_uniform1iv(location, v);
}
public static function uniform2f(location:GLUniformLocation, x:Float, y:Float):Void
{
- nme_gl_uniform2f(location, x, y);
+ lime_gl_uniform2f(location, x, y);
}
public static function uniform2fv(location:GLUniformLocation, v:Array):Void
{
- nme_gl_uniform2fv(location, v);
+ lime_gl_uniform2fv(location, v);
}
public static function uniform2i(location:GLUniformLocation, x:Int, y:Int):Void
{
- nme_gl_uniform2i(location, x, y);
+ lime_gl_uniform2i(location, x, y);
}
public static function uniform2iv(location:GLUniformLocation, v:Array):Void
{
- nme_gl_uniform2iv(location, v);
+ lime_gl_uniform2iv(location, v);
}
public static function uniform3f(location:GLUniformLocation, x:Float, y:Float, z:Float):Void
{
- nme_gl_uniform3f(location, x, y, z);
+ lime_gl_uniform3f(location, x, y, z);
}
public static function uniform3fv(location:GLUniformLocation, v:Array):Void
{
- nme_gl_uniform3fv(location, v);
+ lime_gl_uniform3fv(location, v);
}
public static function uniform3i(location:GLUniformLocation, x:Int, y:Int, z:Int):Void
{
- nme_gl_uniform3i(location, x, y, z);
+ lime_gl_uniform3i(location, x, y, z);
}
public static function uniform3iv(location:GLUniformLocation, v:Array):Void
{
- nme_gl_uniform3iv(location, v);
+ lime_gl_uniform3iv(location, v);
}
public static function uniform4f(location:GLUniformLocation, x:Float, y:Float, z:Float, w:Float):Void
{
- nme_gl_uniform4f(location, x, y, z, w);
+ lime_gl_uniform4f(location, x, y, z, w);
}
public static function uniform4fv(location:GLUniformLocation, v:Array):Void
{
- nme_gl_uniform4fv(location, v);
+ lime_gl_uniform4fv(location, v);
}
public static function uniform4i(location:GLUniformLocation, x:Int, y:Int, z:Int, w:Int):Void
{
- nme_gl_uniform4i(location, x, y, z, w);
+ lime_gl_uniform4i(location, x, y, z, w);
}
public static function uniform4iv(location:GLUniformLocation, v:Array):Void
{
- nme_gl_uniform4iv(location, v);
+ lime_gl_uniform4iv(location, v);
}
public static function uniformMatrix2fv(location:GLUniformLocation, transpose:Bool, v:Float32Array):Void
{
- nme_gl_uniform_matrix(location, transpose, v.getByteBuffer(), 2);
+ lime_gl_uniform_matrix(location, transpose, v.getByteBuffer(), 2);
}
public static function uniformMatrix3fv(location:GLUniformLocation, transpose:Bool, v:Float32Array):Void
{
- nme_gl_uniform_matrix(location, transpose, v.getByteBuffer(), 3);
+ lime_gl_uniform_matrix(location, transpose, v.getByteBuffer(), 3);
}
public static function uniformMatrix4fv(location:GLUniformLocation, transpose:Bool, v:Float32Array):Void
{
- nme_gl_uniform_matrix(location, transpose, v.getByteBuffer(), 4);
+ lime_gl_uniform_matrix(location, transpose, v.getByteBuffer(), 4);
}
public static function uniformMatrix3D(location:GLUniformLocation, transpose:Bool, matrix:Matrix3D):Void
{
- nme_gl_uniform_matrix(location, transpose, Float32Array.fromMatrix(matrix).getByteBuffer() , 4);
+ lime_gl_uniform_matrix(location, transpose, Float32Array.fromMatrix(matrix).getByteBuffer() , 4);
}
public static function useProgram(program:GLProgram):Void
{
- nme_gl_use_program(program == null ? 0 : program.id);
+ lime_gl_use_program(program == null ? 0 : program.id);
}
public static function validateProgram(program:GLProgram):Void
{
- nme_gl_validate_program(program.id);
+ lime_gl_validate_program(program.id);
}
public static function vertexAttrib1f(indx:Int, x:Float):Void
{
- nme_gl_vertex_attrib1f(indx, x);
+ lime_gl_vertex_attrib1f(indx, x);
}
public static function vertexAttrib1fv(indx:Int, values:Array):Void
{
- nme_gl_vertex_attrib1fv(indx, values);
+ lime_gl_vertex_attrib1fv(indx, values);
}
public static function vertexAttrib2f(indx:Int, x:Float, y:Float):Void
{
- nme_gl_vertex_attrib2f(indx, x, y);
+ lime_gl_vertex_attrib2f(indx, x, y);
}
public static function vertexAttrib2fv(indx:Int, values:Array):Void
{
- nme_gl_vertex_attrib2fv(indx, values);
+ lime_gl_vertex_attrib2fv(indx, values);
}
public static function vertexAttrib3f(indx:Int, x:Float, y:Float, z:Float):Void
{
- nme_gl_vertex_attrib3f(indx, x, y, z);
+ lime_gl_vertex_attrib3f(indx, x, y, z);
}
public static function vertexAttrib3fv(indx:Int, values:Array):Void
{
- nme_gl_vertex_attrib3fv(indx, values);
+ lime_gl_vertex_attrib3fv(indx, values);
}
public static function vertexAttrib4f(indx:Int, x:Float, y:Float, z:Float, w:Float):Void
{
- nme_gl_vertex_attrib4f(indx, x, y, z, w);
+ lime_gl_vertex_attrib4f(indx, x, y, z, w);
}
public static function vertexAttrib4fv(indx:Int, values:Array):Void
{
- nme_gl_vertex_attrib4fv(indx, values);
+ lime_gl_vertex_attrib4fv(indx, values);
}
public static function vertexAttribPointer(indx:Int, size:Int, type:Int, normalized:Bool, stride:Int, offset:Int):Void
{
- nme_gl_vertex_attrib_pointer(indx, size, type, normalized, stride, offset);
+ lime_gl_vertex_attrib_pointer(indx, size, type, normalized, stride, offset);
}
public static function viewport(x:Int, y:Int, width:Int, height:Int):Void
{
- nme_gl_viewport(x, y, width, height);
+ lime_gl_viewport(x, y, width, height);
}
@@ -1149,7 +1149,7 @@ class GL {
private static function get_drawingBufferHeight() { return 640; }//Lib.current.stage.stageHeight; }
private static function get_drawingBufferWidth() { return 960; } //Lib.current.stage.stageWidth; }
- private static function get_version():Int { return nme_gl_version(); }
+ private static function get_version():Int { return lime_gl_version(); }
@@ -1159,136 +1159,136 @@ class GL {
- private static var nme_gl_active_texture = load("nme_gl_active_texture", 1);
- private static var nme_gl_attach_shader = load("nme_gl_attach_shader", 2);
- private static var nme_gl_bind_attrib_location = load("nme_gl_bind_attrib_location", 3);
- private static var nme_gl_bind_bitmap_data_texture = load("nme_gl_bind_bitmap_data_texture", 1);
- private static var nme_gl_bind_buffer = load("nme_gl_bind_buffer", 2);
- private static var nme_gl_bind_framebuffer = load("nme_gl_bind_framebuffer", 2);
- private static var nme_gl_bind_renderbuffer = load("nme_gl_bind_renderbuffer", 2);
- private static var nme_gl_bind_texture = load("nme_gl_bind_texture", 2);
- private static var nme_gl_blend_color = load("nme_gl_blend_color", 4);
- private static var nme_gl_blend_equation = load("nme_gl_blend_equation", 1);
- private static var nme_gl_blend_equation_separate = load("nme_gl_blend_equation_separate", 2);
- private static var nme_gl_blend_func = load("nme_gl_blend_func", 2);
- private static var nme_gl_blend_func_separate = load("nme_gl_blend_func_separate", 4);
- private static var nme_gl_buffer_data = load("nme_gl_buffer_data", 5);
- private static var nme_gl_buffer_sub_data = load("nme_gl_buffer_sub_data", 5);
- private static var nme_gl_check_framebuffer_status = load("nme_gl_check_framebuffer_status", 1);
- private static var nme_gl_clear = load("nme_gl_clear", 1);
- private static var nme_gl_clear_color = load("nme_gl_clear_color", 4);
- private static var nme_gl_clear_depth = load("nme_gl_clear_depth", 1);
- private static var nme_gl_clear_stencil = load("nme_gl_clear_stencil", 1);
- private static var nme_gl_color_mask = load("nme_gl_color_mask", 4);
- private static var nme_gl_compile_shader = load("nme_gl_compile_shader", 1);
- private static var nme_gl_compressed_tex_image_2d = load("nme_gl_compressed_tex_image_2d", -1);
- private static var nme_gl_compressed_tex_sub_image_2d = load("nme_gl_compressed_tex_sub_image_2d", -1);
- private static var nme_gl_copy_tex_image_2d = load("nme_gl_copy_tex_image_2d", -1);
- private static var nme_gl_copy_tex_sub_image_2d = load("nme_gl_copy_tex_sub_image_2d", -1);
- private static var nme_gl_create_buffer = load("nme_gl_create_buffer", 0);
- private static var nme_gl_create_framebuffer = load("nme_gl_create_framebuffer", 0);
- private static var nme_gl_create_program = load("nme_gl_create_program", 0);
- private static var nme_gl_create_render_buffer = load("nme_gl_create_render_buffer", 0);
- private static var nme_gl_create_shader = load("nme_gl_create_shader", 1);
- private static var nme_gl_create_texture = load("nme_gl_create_texture", 0);
- private static var nme_gl_delete_buffer = load("nme_gl_delete_buffer", 1);
- private static var nme_gl_delete_program = load("nme_gl_delete_program", 1);
- private static var nme_gl_delete_shader = load("nme_gl_delete_shader", 1);
- private static var nme_gl_delete_texture = load("nme_gl_delete_texture", 1);
- private static var nme_gl_depth_func = load("nme_gl_depth_func", 1);
- private static var nme_gl_depth_mask = load("nme_gl_depth_mask", 1);
- private static var nme_gl_depth_range = load("nme_gl_depth_range", 2);
- private static var nme_gl_detach_shader = load("nme_gl_detach_shader", 2);
- private static var nme_gl_disable = load("nme_gl_disable", 1);
- private static var nme_gl_disable_vertex_attrib_array = load("nme_gl_disable_vertex_attrib_array", 1);
- private static var nme_gl_draw_arrays = load("nme_gl_draw_arrays", 3);
- private static var nme_gl_draw_elements = load("nme_gl_draw_elements", 4);
- private static var nme_gl_enable = load("nme_gl_enable", 1);
- private static var nme_gl_enable_vertex_attrib_array = load("nme_gl_enable_vertex_attrib_array", 1);
- private static var nme_gl_finish = load("nme_gl_finish", 0);
- private static var nme_gl_flush = load("nme_gl_flush", 0);
- private static var nme_gl_framebuffer_renderbuffer = load("nme_gl_framebuffer_renderbuffer", 4);
- private static var nme_gl_framebuffer_texture2D = load("nme_gl_framebuffer_texture2D", 5);
- private static var nme_gl_front_face = load("nme_gl_front_face", 1);
- private static var nme_gl_generate_mipmap = load("nme_gl_generate_mipmap", 1);
- private static var nme_gl_get_active_attrib = load("nme_gl_get_active_attrib", 2);
- private static var nme_gl_get_active_uniform = load("nme_gl_get_active_uniform", 2);
- private static var nme_gl_get_attrib_location = load("nme_gl_get_attrib_location", 2);
- private static var nme_gl_get_buffer_paramerter = load("nme_gl_get_buffer_paramerter", 2);
- private static var nme_gl_get_context_attributes = load("nme_gl_get_context_attributes", 0);
- private static var nme_gl_get_error = load("nme_gl_get_error", 0);
- private static var nme_gl_get_framebuffer_attachment_parameter = load("nme_gl_get_framebuffer_attachment_parameter", 3);
- private static var nme_gl_get_parameter = load("nme_gl_get_parameter", 1);
- // private static var nme_gl_get_extension = load("nme_gl_get_extension", 1);
- private static var nme_gl_get_program_info_log = load("nme_gl_get_program_info_log", 1);
- private static var nme_gl_get_program_parameter = load("nme_gl_get_program_parameter", 2);
- private static var nme_gl_get_render_buffer_parameter = load("nme_gl_get_render_buffer_parameter", 2);
- private static var nme_gl_get_shader_info_log = load("nme_gl_get_shader_info_log", 1);
- private static var nme_gl_get_shader_parameter = load("nme_gl_get_shader_parameter", 2);
- private static var nme_gl_get_shader_precision_format = load("nme_gl_get_shader_precision_format", 2);
- private static var nme_gl_get_shader_source = load("nme_gl_get_shader_source", 1);
- private static var nme_gl_get_supported_extensions = load("nme_gl_get_supported_extensions", 1);
- private static var nme_gl_get_tex_parameter = load("nme_gl_get_tex_parameter", 2);
- private static var nme_gl_get_uniform = load("nme_gl_get_uniform", 2);
- private static var nme_gl_get_uniform_location = load("nme_gl_get_uniform_location", 2);
- private static var nme_gl_get_vertex_attrib = load("nme_gl_get_vertex_attrib", 2);
- private static var nme_gl_get_vertex_attrib_offset = load("nme_gl_get_vertex_attrib_offset", 2);
- private static var nme_gl_hint = load("nme_gl_hint", 2);
- private static var nme_gl_is_buffer = load("nme_gl_is_buffer", 1);
- private static var nme_gl_is_enabled = load("nme_gl_is_enabled", 1);
- private static var nme_gl_is_framebuffer = load("nme_gl_is_framebuffer", 1);
- private static var nme_gl_is_program = load("nme_gl_is_program", 1);
- private static var nme_gl_is_renderbuffer = load("nme_gl_is_renderbuffer", 1);
- private static var nme_gl_is_shader = load("nme_gl_is_shader", 1);
- private static var nme_gl_is_texture = load("nme_gl_is_texture", 1);
- private static var nme_gl_line_width = load("nme_gl_line_width", 1);
- private static var nme_gl_link_program = load("nme_gl_link_program", 1);
- private static var nme_gl_pixel_storei = load("nme_gl_pixel_storei", 2);
- private static var nme_gl_polygon_offset = load("nme_gl_polygon_offset", 2);
- private static var nme_gl_renderbuffer_storage = load("nme_gl_renderbuffer_storage", 4);
- private static var nme_gl_sample_coverage = load("nme_gl_sample_coverage", 2);
- private static var nme_gl_scissor = load("nme_gl_scissor", 4);
- private static var nme_gl_shader_source = load("nme_gl_shader_source", 2);
- private static var nme_gl_stencil_func = load("nme_gl_stencil_func", 3);
- private static var nme_gl_stencil_func_separate = load("nme_gl_stencil_func_separate", 4);
- private static var nme_gl_stencil_mask = load("nme_gl_stencil_mask", 1);
- private static var nme_gl_stencil_mask_separate = load("nme_gl_stencil_mask_separate", 2);
- private static var nme_gl_stencil_op = load("nme_gl_stencil_op", 3);
- private static var nme_gl_stencil_op_separate = load("nme_gl_stencil_op_separate", 4);
- private static var nme_gl_tex_image_2d = load("nme_gl_tex_image_2d", -1);
- private static var nme_gl_tex_parameterf = load("nme_gl_tex_parameterf", 3);
- private static var nme_gl_tex_parameteri = load("nme_gl_tex_parameteri", 3);
- private static var nme_gl_tex_sub_image_2d = load("nme_gl_tex_sub_image_2d", -1);
- private static var nme_gl_uniform1f = load("nme_gl_uniform1f", 2);
- private static var nme_gl_uniform1fv = load("nme_gl_uniform1fv", 2);
- private static var nme_gl_uniform1i = load("nme_gl_uniform1i", 2);
- private static var nme_gl_uniform1iv = load("nme_gl_uniform1iv", 2);
- private static var nme_gl_uniform2f = load("nme_gl_uniform2f", 3);
- private static var nme_gl_uniform2fv = load("nme_gl_uniform2fv", 2);
- private static var nme_gl_uniform2i = load("nme_gl_uniform2i", 3);
- private static var nme_gl_uniform2iv = load("nme_gl_uniform2iv", 2);
- private static var nme_gl_uniform3f = load("nme_gl_uniform3f", 4);
- private static var nme_gl_uniform3fv = load("nme_gl_uniform3fv", 2);
- private static var nme_gl_uniform3i = load("nme_gl_uniform3i", 4);
- private static var nme_gl_uniform3iv = load("nme_gl_uniform3iv", 2);
- private static var nme_gl_uniform4f = load("nme_gl_uniform4f", 5);
- private static var nme_gl_uniform4fv = load("nme_gl_uniform4fv", 2);
- private static var nme_gl_uniform4i = load("nme_gl_uniform4i", 5);
- private static var nme_gl_uniform4iv = load("nme_gl_uniform4iv", 2);
- private static var nme_gl_uniform_matrix = load("nme_gl_uniform_matrix", 4);
- private static var nme_gl_use_program = load("nme_gl_use_program", 1);
- private static var nme_gl_validate_program = load("nme_gl_validate_program", 1);
- private static var nme_gl_version = load("nme_gl_version", 0);
- private static var nme_gl_vertex_attrib1f = load("nme_gl_vertex_attrib1f", 2);
- private static var nme_gl_vertex_attrib1fv = load("nme_gl_vertex_attrib1fv", 2);
- private static var nme_gl_vertex_attrib2f = load("nme_gl_vertex_attrib2f", 3);
- private static var nme_gl_vertex_attrib2fv = load("nme_gl_vertex_attrib2fv", 2);
- private static var nme_gl_vertex_attrib3f = load("nme_gl_vertex_attrib3f", 4);
- private static var nme_gl_vertex_attrib3fv = load("nme_gl_vertex_attrib3fv", 2);
- private static var nme_gl_vertex_attrib4f = load("nme_gl_vertex_attrib4f", 5);
- private static var nme_gl_vertex_attrib4fv = load("nme_gl_vertex_attrib4fv", 2);
- private static var nme_gl_vertex_attrib_pointer = load("nme_gl_vertex_attrib_pointer", -1);
- private static var nme_gl_viewport = load("nme_gl_viewport", 4);
+ private static var lime_gl_active_texture = load("lime_gl_active_texture", 1);
+ private static var lime_gl_attach_shader = load("lime_gl_attach_shader", 2);
+ private static var lime_gl_bind_attrib_location = load("lime_gl_bind_attrib_location", 3);
+ private static var lime_gl_bind_bitmap_data_texture = load("lime_gl_bind_bitmap_data_texture", 1);
+ private static var lime_gl_bind_buffer = load("lime_gl_bind_buffer", 2);
+ private static var lime_gl_bind_framebuffer = load("lime_gl_bind_framebuffer", 2);
+ private static var lime_gl_bind_renderbuffer = load("lime_gl_bind_renderbuffer", 2);
+ private static var lime_gl_bind_texture = load("lime_gl_bind_texture", 2);
+ private static var lime_gl_blend_color = load("lime_gl_blend_color", 4);
+ private static var lime_gl_blend_equation = load("lime_gl_blend_equation", 1);
+ private static var lime_gl_blend_equation_separate = load("lime_gl_blend_equation_separate", 2);
+ private static var lime_gl_blend_func = load("lime_gl_blend_func", 2);
+ private static var lime_gl_blend_func_separate = load("lime_gl_blend_func_separate", 4);
+ private static var lime_gl_buffer_data = load("lime_gl_buffer_data", 5);
+ private static var lime_gl_buffer_sub_data = load("lime_gl_buffer_sub_data", 5);
+ private static var lime_gl_check_framebuffer_status = load("lime_gl_check_framebuffer_status", 1);
+ private static var lime_gl_clear = load("lime_gl_clear", 1);
+ private static var lime_gl_clear_color = load("lime_gl_clear_color", 4);
+ private static var lime_gl_clear_depth = load("lime_gl_clear_depth", 1);
+ private static var lime_gl_clear_stencil = load("lime_gl_clear_stencil", 1);
+ private static var lime_gl_color_mask = load("lime_gl_color_mask", 4);
+ private static var lime_gl_compile_shader = load("lime_gl_compile_shader", 1);
+ private static var lime_gl_compressed_tex_image_2d = load("lime_gl_compressed_tex_image_2d", -1);
+ private static var lime_gl_compressed_tex_sub_image_2d = load("lime_gl_compressed_tex_sub_image_2d", -1);
+ private static var lime_gl_copy_tex_image_2d = load("lime_gl_copy_tex_image_2d", -1);
+ private static var lime_gl_copy_tex_sub_image_2d = load("lime_gl_copy_tex_sub_image_2d", -1);
+ private static var lime_gl_create_buffer = load("lime_gl_create_buffer", 0);
+ private static var lime_gl_create_framebuffer = load("lime_gl_create_framebuffer", 0);
+ private static var lime_gl_create_program = load("lime_gl_create_program", 0);
+ private static var lime_gl_create_render_buffer = load("lime_gl_create_render_buffer", 0);
+ private static var lime_gl_create_shader = load("lime_gl_create_shader", 1);
+ private static var lime_gl_create_texture = load("lime_gl_create_texture", 0);
+ private static var lime_gl_delete_buffer = load("lime_gl_delete_buffer", 1);
+ private static var lime_gl_delete_program = load("lime_gl_delete_program", 1);
+ private static var lime_gl_delete_shader = load("lime_gl_delete_shader", 1);
+ private static var lime_gl_delete_texture = load("lime_gl_delete_texture", 1);
+ private static var lime_gl_depth_func = load("lime_gl_depth_func", 1);
+ private static var lime_gl_depth_mask = load("lime_gl_depth_mask", 1);
+ private static var lime_gl_depth_range = load("lime_gl_depth_range", 2);
+ private static var lime_gl_detach_shader = load("lime_gl_detach_shader", 2);
+ private static var lime_gl_disable = load("lime_gl_disable", 1);
+ private static var lime_gl_disable_vertex_attrib_array = load("lime_gl_disable_vertex_attrib_array", 1);
+ private static var lime_gl_draw_arrays = load("lime_gl_draw_arrays", 3);
+ private static var lime_gl_draw_elements = load("lime_gl_draw_elements", 4);
+ private static var lime_gl_enable = load("lime_gl_enable", 1);
+ private static var lime_gl_enable_vertex_attrib_array = load("lime_gl_enable_vertex_attrib_array", 1);
+ private static var lime_gl_finish = load("lime_gl_finish", 0);
+ private static var lime_gl_flush = load("lime_gl_flush", 0);
+ private static var lime_gl_framebuffer_renderbuffer = load("lime_gl_framebuffer_renderbuffer", 4);
+ private static var lime_gl_framebuffer_texture2D = load("lime_gl_framebuffer_texture2D", 5);
+ private static var lime_gl_front_face = load("lime_gl_front_face", 1);
+ private static var lime_gl_generate_mipmap = load("lime_gl_generate_mipmap", 1);
+ private static var lime_gl_get_active_attrib = load("lime_gl_get_active_attrib", 2);
+ private static var lime_gl_get_active_uniform = load("lime_gl_get_active_uniform", 2);
+ private static var lime_gl_get_attrib_location = load("lime_gl_get_attrib_location", 2);
+ private static var lime_gl_get_buffer_paramerter = load("lime_gl_get_buffer_paramerter", 2);
+ private static var lime_gl_get_context_attributes = load("lime_gl_get_context_attributes", 0);
+ private static var lime_gl_get_error = load("lime_gl_get_error", 0);
+ private static var lime_gl_get_framebuffer_attachment_parameter = load("lime_gl_get_framebuffer_attachment_parameter", 3);
+ private static var lime_gl_get_parameter = load("lime_gl_get_parameter", 1);
+ // private static var lime_gl_get_extension = load("lime_gl_get_extension", 1);
+ private static var lime_gl_get_program_info_log = load("lime_gl_get_program_info_log", 1);
+ private static var lime_gl_get_program_parameter = load("lime_gl_get_program_parameter", 2);
+ private static var lime_gl_get_render_buffer_parameter = load("lime_gl_get_render_buffer_parameter", 2);
+ private static var lime_gl_get_shader_info_log = load("lime_gl_get_shader_info_log", 1);
+ private static var lime_gl_get_shader_parameter = load("lime_gl_get_shader_parameter", 2);
+ private static var lime_gl_get_shader_precision_format = load("lime_gl_get_shader_precision_format", 2);
+ private static var lime_gl_get_shader_source = load("lime_gl_get_shader_source", 1);
+ private static var lime_gl_get_supported_extensions = load("lime_gl_get_supported_extensions", 1);
+ private static var lime_gl_get_tex_parameter = load("lime_gl_get_tex_parameter", 2);
+ private static var lime_gl_get_uniform = load("lime_gl_get_uniform", 2);
+ private static var lime_gl_get_uniform_location = load("lime_gl_get_uniform_location", 2);
+ private static var lime_gl_get_vertex_attrib = load("lime_gl_get_vertex_attrib", 2);
+ private static var lime_gl_get_vertex_attrib_offset = load("lime_gl_get_vertex_attrib_offset", 2);
+ private static var lime_gl_hint = load("lime_gl_hint", 2);
+ private static var lime_gl_is_buffer = load("lime_gl_is_buffer", 1);
+ private static var lime_gl_is_enabled = load("lime_gl_is_enabled", 1);
+ private static var lime_gl_is_framebuffer = load("lime_gl_is_framebuffer", 1);
+ private static var lime_gl_is_program = load("lime_gl_is_program", 1);
+ private static var lime_gl_is_renderbuffer = load("lime_gl_is_renderbuffer", 1);
+ private static var lime_gl_is_shader = load("lime_gl_is_shader", 1);
+ private static var lime_gl_is_texture = load("lime_gl_is_texture", 1);
+ private static var lime_gl_line_width = load("lime_gl_line_width", 1);
+ private static var lime_gl_link_program = load("lime_gl_link_program", 1);
+ private static var lime_gl_pixel_storei = load("lime_gl_pixel_storei", 2);
+ private static var lime_gl_polygon_offset = load("lime_gl_polygon_offset", 2);
+ private static var lime_gl_renderbuffer_storage = load("lime_gl_renderbuffer_storage", 4);
+ private static var lime_gl_sample_coverage = load("lime_gl_sample_coverage", 2);
+ private static var lime_gl_scissor = load("lime_gl_scissor", 4);
+ private static var lime_gl_shader_source = load("lime_gl_shader_source", 2);
+ private static var lime_gl_stencil_func = load("lime_gl_stencil_func", 3);
+ private static var lime_gl_stencil_func_separate = load("lime_gl_stencil_func_separate", 4);
+ private static var lime_gl_stencil_mask = load("lime_gl_stencil_mask", 1);
+ private static var lime_gl_stencil_mask_separate = load("lime_gl_stencil_mask_separate", 2);
+ private static var lime_gl_stencil_op = load("lime_gl_stencil_op", 3);
+ private static var lime_gl_stencil_op_separate = load("lime_gl_stencil_op_separate", 4);
+ private static var lime_gl_tex_image_2d = load("lime_gl_tex_image_2d", -1);
+ private static var lime_gl_tex_parameterf = load("lime_gl_tex_parameterf", 3);
+ private static var lime_gl_tex_parameteri = load("lime_gl_tex_parameteri", 3);
+ private static var lime_gl_tex_sub_image_2d = load("lime_gl_tex_sub_image_2d", -1);
+ private static var lime_gl_uniform1f = load("lime_gl_uniform1f", 2);
+ private static var lime_gl_uniform1fv = load("lime_gl_uniform1fv", 2);
+ private static var lime_gl_uniform1i = load("lime_gl_uniform1i", 2);
+ private static var lime_gl_uniform1iv = load("lime_gl_uniform1iv", 2);
+ private static var lime_gl_uniform2f = load("lime_gl_uniform2f", 3);
+ private static var lime_gl_uniform2fv = load("lime_gl_uniform2fv", 2);
+ private static var lime_gl_uniform2i = load("lime_gl_uniform2i", 3);
+ private static var lime_gl_uniform2iv = load("lime_gl_uniform2iv", 2);
+ private static var lime_gl_uniform3f = load("lime_gl_uniform3f", 4);
+ private static var lime_gl_uniform3fv = load("lime_gl_uniform3fv", 2);
+ private static var lime_gl_uniform3i = load("lime_gl_uniform3i", 4);
+ private static var lime_gl_uniform3iv = load("lime_gl_uniform3iv", 2);
+ private static var lime_gl_uniform4f = load("lime_gl_uniform4f", 5);
+ private static var lime_gl_uniform4fv = load("lime_gl_uniform4fv", 2);
+ private static var lime_gl_uniform4i = load("lime_gl_uniform4i", 5);
+ private static var lime_gl_uniform4iv = load("lime_gl_uniform4iv", 2);
+ private static var lime_gl_uniform_matrix = load("lime_gl_uniform_matrix", 4);
+ private static var lime_gl_use_program = load("lime_gl_use_program", 1);
+ private static var lime_gl_validate_program = load("lime_gl_validate_program", 1);
+ private static var lime_gl_version = load("lime_gl_version", 0);
+ private static var lime_gl_vertex_attrib1f = load("lime_gl_vertex_attrib1f", 2);
+ private static var lime_gl_vertex_attrib1fv = load("lime_gl_vertex_attrib1fv", 2);
+ private static var lime_gl_vertex_attrib2f = load("lime_gl_vertex_attrib2f", 3);
+ private static var lime_gl_vertex_attrib2fv = load("lime_gl_vertex_attrib2fv", 2);
+ private static var lime_gl_vertex_attrib3f = load("lime_gl_vertex_attrib3f", 4);
+ private static var lime_gl_vertex_attrib3fv = load("lime_gl_vertex_attrib3fv", 2);
+ private static var lime_gl_vertex_attrib4f = load("lime_gl_vertex_attrib4f", 5);
+ private static var lime_gl_vertex_attrib4fv = load("lime_gl_vertex_attrib4fv", 2);
+ private static var lime_gl_vertex_attrib_pointer = load("lime_gl_vertex_attrib_pointer", -1);
+ private static var lime_gl_viewport = load("lime_gl_viewport", 4);
}
diff --git a/lime/utils/Assets.hx b/lime/utils/Assets.hx
index db0e02ad4..efab4b0a8 100644
--- a/lime/utils/Assets.hx
+++ b/lime/utils/Assets.hx
@@ -23,7 +23,7 @@ import lime.utils.ByteArray;
* embedded images, fonts, sounds and other resource files.
*
* The contents are populated automatically when an application
- * is compiled using the NME command-line tools, based on the
+ * is compiled using the lime command-line tools, based on the
* contents of the *.nmml project file.
*
* For most platforms, the assets are included in the same directory
diff --git a/lime/utils/JNI.hx b/lime/utils/JNI.hx
index 32584c981..13a5c0e88 100644
--- a/lime/utils/JNI.hx
+++ b/lime/utils/JNI.hx
@@ -19,7 +19,7 @@ class JNI {
if (!initialized) {
initialized = true;
- var method = Lib.load ("nme", "nme_jni_init_callback", 1);
+ var method = Lib.load ("lime", "lime_jni_init_callback", 1);
method (onCallback);
}
@@ -47,7 +47,7 @@ class JNI {
init ();
- var method = new JNIMethod (nme_jni_create_method (className, memberName, signature, false));
+ var method = new JNIMethod (lime_jni_create_method (className, memberName, signature, false));
return method.getMemberMethod (useArray);
}
@@ -57,7 +57,7 @@ class JNI {
init ();
- var method = new JNIMethod (nme_jni_create_method (className, memberName, signature, true));
+ var method = new JNIMethod (lime_jni_create_method (className, memberName, signature, true));
return method.getStaticMethod (useArray);
}
@@ -70,7 +70,7 @@ class JNI {
- private static var nme_jni_create_method = Lib.load ("nme", "nme_jni_create_method", 4);
+ private static var lime_jni_create_method = Lib.load ("lime", "lime_jni_create_method", 4);
}
@@ -91,14 +91,14 @@ class JNIMethod {
public function callMember (args:Array):Dynamic {
var jobject = args.shift ();
- return nme_jni_call_member (method, jobject, args);
+ return lime_jni_call_member (method, jobject, args);
}
public function callStatic (args:Array):Dynamic {
- return nme_jni_call_static (method, args);
+ return lime_jni_call_static (method, args);
}
@@ -140,8 +140,8 @@ class JNIMethod {
- private static var nme_jni_call_member = Libs.load ("nme", "nme_jni_call_member", 3);
- private static var nme_jni_call_static = Libs.load ("nme", "nme_jni_call_static", 2);
+ private static var lime_jni_call_member = Libs.load ("lime", "lime_jni_call_member", 3);
+ private static var lime_jni_call_static = Libs.load ("lime", "lime_jni_call_static", 2);
}
diff --git a/lime/utils/Libs.hx b/lime/utils/Libs.hx
index 879e1daff..a5ef0e723 100644
--- a/lime/utils/Libs.hx
+++ b/lime/utils/Libs.hx
@@ -48,11 +48,11 @@ class Libs {
#if neko
private static function loadNekoAPI ():Void {
- var init = load ("nme", "neko_init", 5);
+ var init = load ("lime", "neko_init", 5);
if (init != null) {
- loaderTrace ("Found nekoapi @ " + __moduleNames.get ("nme"));
+ loaderTrace ("Found nekoapi @ " + __moduleNames.get ("lime"));
init (function(s) return new String (s), function (len:Int) { var r = []; if (len > 0) r[len - 1] = null; return r; }, null, true, false);
} else {
@@ -215,7 +215,7 @@ class Libs {
loaderTrace ("Result : " + result);
#if neko
- if (library == "nme") {
+ if (library == "lime") {
loadNekoAPI ();
}
#end
diff --git a/lime/utils/WeakRef.hx b/lime/utils/WeakRef.hx
index 131224286..661357e37 100644
--- a/lime/utils/WeakRef.hx
+++ b/lime/utils/WeakRef.hx
@@ -15,7 +15,7 @@ class WeakRef {
if (makeWeak) {
- weakRef = nme_weak_ref_create (this, object);
+ weakRef = lime_weak_ref_create (this, object);
hardRef = null;
} else {
@@ -42,7 +42,7 @@ class WeakRef {
}
- var result = nme_weak_ref_get (weakRef);
+ var result = lime_weak_ref_get (weakRef);
if (result == null) {
weakRef = -1;
@@ -71,8 +71,8 @@ class WeakRef {
// Native Methods
- private static var nme_weak_ref_create:Dynamic = Libs.load ("nme", "nme_weak_ref_create", 2);
- private static var nme_weak_ref_get:Dynamic = Libs.load ("nme", "nme_weak_ref_get", 1);
+ private static var lime_weak_ref_create:Dynamic = Libs.load ("lime", "lime_weak_ref_create", 2);
+ private static var lime_weak_ref_get:Dynamic = Libs.load ("lime", "lime_weak_ref_get", 1);
}
\ No newline at end of file
diff --git a/lime/utils/html5/ByteArray.hx b/lime/utils/html5/ByteArray.hx
index 4079b6933..1f1dc11ce 100644
--- a/lime/utils/html5/ByteArray.hx
+++ b/lime/utils/html5/ByteArray.hx
@@ -35,7 +35,7 @@ class ByteArray implements ArrayAccess {
public function new():Void {
- _nmeResizeBuffer(allocated);
+ _limeResizeBuffer(allocated);
//this.byteView = untyped __new__("Uint8Array", allocated);
//this.data = untyped __new__("DataView", this.byteView.buffer);
@@ -80,7 +80,7 @@ class ByteArray implements ArrayAccess {
}
- private function _nmeResizeBuffer(len:Int):Void {
+ private function _limeResizeBuffer(len:Int):Void {
var oldByteView:Uint8Array = this.byteView;
var newByteView:Uint8Array = untyped __new__("Uint8Array", len);
@@ -113,7 +113,7 @@ class ByteArray implements ArrayAccess {
static public function fromBytes(inBytes:Bytes)
{
var result = new ByteArray();
- result.nmeFromBytes(inBytes);
+ result.limeFromBytes(inBytes);
return result;
}
@@ -121,7 +121,7 @@ class ByteArray implements ArrayAccess {
return data.buffer;
}
- private inline function nmeFromBytes(inBytes:Bytes):Void
+ private inline function limeFromBytes(inBytes:Bytes):Void
{
byteView = untyped __new__("Uint8Array", inBytes.getData());
length = byteView.length;
@@ -129,7 +129,7 @@ class ByteArray implements ArrayAccess {
}
- public inline function nmeGet(pos:Int):Int {
+ public inline function limeGet(pos:Int):Int {
var data:Dynamic = data;
return data.getUint8(pos);
@@ -137,14 +137,14 @@ class ByteArray implements ArrayAccess {
}
- public inline function nmeGetBuffer() {
+ public inline function limeGetBuffer() {
return data.buffer;
}
- public static function nmeOfBuffer(buffer:ArrayBuffer):ByteArray {
+ public static function limeOfBuffer(buffer:ArrayBuffer):ByteArray {
var bytes = new ByteArray();
bytes.length = bytes.allocated ;//= buffer.byteLength; todo
@@ -155,7 +155,7 @@ class ByteArray implements ArrayAccess {
}
- public inline function nmeSet(pos:Int, v:Int):Void {
+ public inline function limeSet(pos:Int, v:Int):Void {
var data:Dynamic = data;
data.setUint8(pos, v);
@@ -502,9 +502,9 @@ class ByteArray implements ArrayAccess {
private inline function set_length(value:Int):Int {
if (allocated < value)
- _nmeResizeBuffer(allocated = Std.int(Math.max(value, allocated * 2)));
+ _limeResizeBuffer(allocated = Std.int(Math.max(value, allocated * 2)));
else if (allocated > value)
- _nmeResizeBuffer(allocated = value);
+ _limeResizeBuffer(allocated = value);
length = value;
return value;
}
diff --git a/lime/utils/html5/URLLoader.hx b/lime/utils/html5/URLLoader.hx
index bf3b14f6a..804aec8e5 100644
--- a/lime/utils/html5/URLLoader.hx
+++ b/lime/utils/html5/URLLoader.hx
@@ -154,7 +154,7 @@ class URLLoader { //extends EventDispatcher {
switch (dataFormat) {
- case BINARY: uri = data.nmeGetBuffer();
+ case BINARY: uri = data.limeGetBuffer();
default: uri = data.readUTFBytes(data.length);
}
@@ -253,7 +253,7 @@ class URLLoader { //extends EventDispatcher {
switch (dataFormat) {
- case BINARY: this.data = ByteArray.nmeOfBuffer(content);
+ case BINARY: this.data = ByteArray.limeOfBuffer(content);
default: this.data = Std.string(content);
}
diff --git a/lime/utils/native/ByteArray.hx b/lime/utils/native/ByteArray.hx
index 33230779a..ac780db05 100644
--- a/lime/utils/native/ByteArray.hx
+++ b/lime/utils/native/ByteArray.hx
@@ -6,7 +6,7 @@ import lime.utils.Libs;
import haxe.io.Bytes;
import haxe.io.BytesData;
-// import nme.errors.EOFError; // Ensure that the neko->haxe callbacks are initialized
+// import lime.errors.EOFError; // Ensure that the neko->haxe callbacks are initialized
import lime.utils.CompressionAlgorithm;
import lime.utils.IDataInput;
@@ -71,7 +71,7 @@ class ByteArray extends Bytes #if !haxe3 , #end implements ArrayAccess #if
#end
}
- #if !no_nme_io
+ #if !no_lime_io
/** @private */ static function __init__() {
var factory = function(inLen:Int) { return new ByteArray(inLen); };
var resize = function(inArray:ByteArray, inLen:Int)
@@ -86,7 +86,7 @@ class ByteArray extends Bytes #if !haxe3 , #end implements ArrayAccess #if
var slen = function(inArray:ByteArray) { return inArray == null ? 0 : inArray.length; }
#if !lime_html5
- var init = Libs.load("nme", "nme_byte_array_init", 4);
+ var init = Libs.load("lime", "lime_byte_array_init", 4);
init(factory, slen, resize, bytes);
#end //lime_html5
}
@@ -135,7 +135,7 @@ class ByteArray extends Bytes #if !haxe3 , #end implements ArrayAccess #if
if (algorithm == CompressionAlgorithm.LZMA)
{
- result = Bytes.ofData(nme_lzma_encode( cast src.getData()) );
+ result = Bytes.ofData(lime_lzma_encode( cast src.getData()) );
} else
{
@@ -191,7 +191,7 @@ class ByteArray extends Bytes #if !haxe3 , #end implements ArrayAccess #if
static public function fromBytes(inBytes:Bytes)
{
var result = new ByteArray( -1);
- result.nmeFromBytes(inBytes);
+ result.limeFromBytes(inBytes);
return result;
}
@@ -211,7 +211,7 @@ class ByteArray extends Bytes #if !haxe3 , #end implements ArrayAccess #if
#end //!lime_html5
- private inline function nmeFromBytes(inBytes:Bytes):Void
+ private inline function limeFromBytes(inBytes:Bytes):Void
{
b = inBytes.b;
length = inBytes.length;
@@ -277,10 +277,10 @@ class ByteArray extends Bytes #if !haxe3 , #end implements ArrayAccess #if
return 0.0;
}
- #if !no_nme_io
+ #if !no_lime_io
static public function readFile(inString:String):ByteArray
{
- return nme_byte_array_read_file(inString);
+ return lime_byte_array_read_file(inString);
}
#end
@@ -446,7 +446,7 @@ class ByteArray extends Bytes #if !haxe3 , #end implements ArrayAccess #if
if (algorithm == CompressionAlgorithm.LZMA)
{
- result = Bytes.ofData(nme_lzma_decode(src.getData()));
+ result = Bytes.ofData(lime_lzma_decode(src.getData()));
} else
{
@@ -522,10 +522,10 @@ class ByteArray extends Bytes #if !haxe3 , #end implements ArrayAccess #if
#end //!lime_html5
}
- #if !no_nme_io
+ #if !no_lime_io
public function writeFile(inString:String):Void
{
- nme_byte_array_overwrite_file(inString, this);
+ lime_byte_array_overwrite_file(inString, this);
}
#end
@@ -621,12 +621,12 @@ class ByteArray extends Bytes #if !haxe3 , #end implements ArrayAccess #if
/** @private */ private static var _double_of_bytes = Libs.load("std", "double_of_bytes", 2);
/** @private */ private static var _float_bytes = Libs.load("std", "float_bytes", 2);
/** @private */ private static var _float_of_bytes = Libs.load("std", "float_of_bytes", 2);
- #if !no_nme_io
- private static var nme_byte_array_overwrite_file = Libs.load("nme","nme_byte_array_overwrite_file", 2);
- private static var nme_byte_array_read_file = Libs.load("nme", "nme_byte_array_read_file", 1);
+ #if !no_lime_io
+ private static var lime_byte_array_overwrite_file = Libs.load("lime","lime_byte_array_overwrite_file", 2);
+ private static var lime_byte_array_read_file = Libs.load("lime", "lime_byte_array_read_file", 1);
#end
- private static var nme_lzma_encode = Libs.load("nme", "nme_lzma_encode", 1);
- private static var nme_lzma_decode = Libs.load("nme", "nme_lzma_decode", 1);
+ private static var lime_lzma_encode = Libs.load("lime", "lime_lzma_encode", 1);
+ private static var lime_lzma_decode = Libs.load("lime", "lime_lzma_decode", 1);
}
#else
diff --git a/project/Build.xml b/project/Build.xml
index 0d8a5e5dc..362412543 100644
--- a/project/Build.xml
+++ b/project/Build.xml
@@ -17,14 +17,14 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -49,21 +49,21 @@
-
-
+
+
-
+
-
+
-
+
@@ -145,7 +145,7 @@
-
+
@@ -271,12 +271,12 @@
-
+
-
-
+
+
@@ -344,12 +344,12 @@
-
+
-
-
+
+
@@ -358,8 +358,8 @@
-
-
+
+
@@ -427,7 +427,7 @@
-
+
@@ -440,7 +440,7 @@
-
+
@@ -462,7 +462,7 @@
-
+
@@ -494,7 +494,7 @@
-
+
diff --git a/project/include/Audio.h b/project/include/Audio.h
index eee255bb0..918e95fe1 100644
--- a/project/include/Audio.h
+++ b/project/include/Audio.h
@@ -23,7 +23,7 @@
//#define LOG_SOUND(args...) { }
-namespace nme
+namespace lime
{
class AudioSample
{
diff --git a/project/include/ByteArray.h b/project/include/ByteArray.h
index e65cdc72d..16ba2f550 100644
--- a/project/include/ByteArray.h
+++ b/project/include/ByteArray.h
@@ -1,11 +1,11 @@
-#ifndef NME_BYTE_ARRAY_H
-#define NME_BYTE_ARRAY_H
+#ifndef LIME_BYTE_ARRAY_H
+#define LIME_BYTE_ARRAY_H
#include "Object.h"
#include "QuickVec.h"
#include "Utils.h"
-namespace nme
+namespace lime
{
diff --git a/project/include/CachedExtent.h b/project/include/CachedExtent.h
index 55ef75dc3..bf876751b 100644
--- a/project/include/CachedExtent.h
+++ b/project/include/CachedExtent.h
@@ -1,10 +1,10 @@
-#ifndef NME_CACHED_EXTENT_H
-#define NME_CACHED_EXTENT_H
+#ifndef LIME_CACHED_EXTENT_H
+#define LIME_CACHED_EXTENT_H
#include
#include
-namespace nme
+namespace lime
{
extern int gCachedExtentID;
@@ -40,6 +40,6 @@ private:
CachedExtent mExtentCache[3];
};
-} // end namespace NME
+} // end namespace lime
#endif
diff --git a/project/include/Display.h b/project/include/Display.h
index 7f319d826..aefcaf270 100644
--- a/project/include/Display.h
+++ b/project/include/Display.h
@@ -1,5 +1,5 @@
-#ifndef NME_DISPLAY_H
-#define NME_DISPLAY_H
+#ifndef LIME_DISPLAY_H
+#define LIME_DISPLAY_H
#include
#include
@@ -9,7 +9,7 @@
#include
#include
-namespace nme
+namespace lime
{
enum
@@ -570,6 +570,6 @@ void CreateMainFrame( FrameCreationCallback inOnFrame, int inWidth,int inHeight,
unsigned int inFlags, const char *inTitle, Surface *inIcon );
-} // end namespace nme
+} // end namespace lime
#endif
diff --git a/project/include/ExternalInterface.h b/project/include/ExternalInterface.h
index 9310a9fc4..ff33e59b2 100644
--- a/project/include/ExternalInterface.h
+++ b/project/include/ExternalInterface.h
@@ -6,7 +6,7 @@
#include
-namespace nme
+namespace lime
{
extern vkind gObjectKind;
diff --git a/project/include/Filters.h b/project/include/Filters.h
index f60d5f21c..916143866 100644
--- a/project/include/Filters.h
+++ b/project/include/Filters.h
@@ -4,7 +4,7 @@
#include "QuickVec.h"
#include "Geom.h"
-namespace nme
+namespace lime
{
class Surface;
@@ -95,6 +95,6 @@ Surface *FilterBitmap(const FilterList &inList, Surface *inBitmap,
Rect GetFilteredObjectRect(const FilterList &inList,const Rect &inRect);
-} // end namespace nme
+} // end namespace lime
#endif
diff --git a/project/include/Font.h b/project/include/Font.h
index 20b0487e2..3c43b1ea1 100644
--- a/project/include/Font.h
+++ b/project/include/Font.h
@@ -1,5 +1,5 @@
-#ifndef NME_FONT_H
-#define NME_FONT_H
+#ifndef LIME_FONT_H
+#define LIME_FONT_H
#include
#include
@@ -10,7 +10,7 @@
#include
#include
-namespace nme
+namespace lime
{
struct TextLineMetrics
@@ -205,6 +205,6 @@ class FontCache
{
};
-} // end namespace nme
+} // end namespace lime
#endif
diff --git a/project/include/Geom.h b/project/include/Geom.h
index cc1086529..728b19ee9 100644
--- a/project/include/Geom.h
+++ b/project/include/Geom.h
@@ -1,5 +1,5 @@
-#ifndef NME_GEOM_H
-#define NME_GEOM_H
+#ifndef LIME_GEOM_H
+#define LIME_GEOM_H
#include
#include
@@ -8,7 +8,7 @@
#define M_PI 3.14159265358979323846
#endif
-namespace nme
+namespace lime
{
enum GlyphRotation { gr0, gr90, gr180, gr270 };
@@ -446,6 +446,6 @@ struct Tri
};
-} // end namespace nme
+} // end namespace lime
#endif
diff --git a/project/include/Graphics.h b/project/include/Graphics.h
index acfd26fae..38aea3bae 100644
--- a/project/include/Graphics.h
+++ b/project/include/Graphics.h
@@ -1,5 +1,5 @@
-#ifndef NME_GRAPHICS_H
-#define NME_GRAPHICS_H
+#ifndef LIME_GRAPHICS_H
+#define LIME_GRAPHICS_H
#include
#include
@@ -10,7 +10,7 @@
typedef unsigned int uint32;
typedef unsigned char uint8;
-namespace nme
+namespace lime
{
enum GraphicsAPIType { gatBase, gatInternal, gatQuartz, gatCairo, gatOpenGL, gatOpenGLES };
@@ -580,7 +580,7 @@ public:
virtual bool Hits(const RenderState &inState) { return false; }
- #ifdef NME_DIRECTFB
+ #ifdef LIME_DIRECTFB
static Renderer *CreateHardware(const class GraphicsJob &inJob,const GraphicsPath &inPath,HardwareContext &inHardware);
#endif
@@ -601,7 +601,7 @@ struct GraphicsJob
GraphicsStroke *mStroke;
IGraphicsFill *mFill;
GraphicsTrianglePath *mTriangles;
- #ifdef NME_DIRECTFB
+ #ifdef LIME_DIRECTFB
class Renderer *mHardwareRenderer;
#endif
class Renderer *mSoftwareRenderer;
@@ -718,6 +718,6 @@ private:
-} // end namespace nme
+} // end namespace lime
#endif
diff --git a/project/include/Input.h b/project/include/Input.h
index ceb677214..aee96d1ea 100644
--- a/project/include/Input.h
+++ b/project/include/Input.h
@@ -1,7 +1,7 @@
#ifndef INPUT_H
#define INPUT_H
-namespace nme
+namespace lime
{
bool GetAcceleration(double &outX, double &outY, double &outZ);
diff --git a/project/include/KeyCodes.h b/project/include/KeyCodes.h
index a38e68acc..72402fc65 100644
--- a/project/include/KeyCodes.h
+++ b/project/include/KeyCodes.h
@@ -1,7 +1,7 @@
#ifndef KEY_CODES_H
#define KEY_CODES_H
-namespace nme
+namespace lime
{
enum KeyCode
diff --git a/project/include/NMEThread.h b/project/include/LimeThread.h
similarity index 84%
rename from project/include/NMEThread.h
rename to project/include/LimeThread.h
index 61f6f5849..63283e872 100644
--- a/project/include/NMEThread.h
+++ b/project/include/LimeThread.h
@@ -1,5 +1,5 @@
-#ifndef NME_THREAD_H
-#define NME_THREAD_H
+#ifndef LIME_THREAD_H
+#define LIME_THREAD_H
#ifndef HX_WINDOWS
#ifndef EPPC
@@ -11,7 +11,7 @@
#undef max
#endif
-namespace nme
+namespace lime
{
#ifndef HX_WINDOWS
#ifdef EPPC
diff --git a/project/include/Lzma.h b/project/include/Lzma.h
index 886205d1f..b61368951 100644
--- a/project/include/Lzma.h
+++ b/project/include/Lzma.h
@@ -1,9 +1,9 @@
-#ifndef NME_LZMA_H
-#define NME_LZMA_H
+#ifndef LIME_LZMA_H
+#define LIME_LZMA_H
#include
-namespace nme {
+namespace lime {
class Lzma {
public:
diff --git a/project/include/Matrix.h b/project/include/Matrix.h
index 8a90af3f3..08aab46a4 100644
--- a/project/include/Matrix.h
+++ b/project/include/Matrix.h
@@ -1,10 +1,10 @@
-#ifndef NME_MATRIX_H
-#define NME_MATRIX_H
+#ifndef LIME_MATRIX_H
+#define LIME_MATRIX_H
#include
#include
-namespace nme {
+namespace lime {
class Matrix
{
@@ -86,6 +86,6 @@ public:
typedef Matrix Matrix3D;
-} // end namespace nme
+} // end namespace lime
#endif
diff --git a/project/include/Object.h b/project/include/Object.h
index f5f67387a..55f4acf07 100644
--- a/project/include/Object.h
+++ b/project/include/Object.h
@@ -1,7 +1,7 @@
-#ifndef NME_OBJECT_H
-#define NME_OBJECT_H
+#ifndef LIME_OBJECT_H
+#define LIME_OBJECT_H
-namespace nme
+namespace lime
{
class Object
@@ -18,7 +18,7 @@ protected:
int mRefCount;
};
-} // end namespace nme
+} // end namespace lime
#endif
diff --git a/project/include/Pixel.h b/project/include/Pixel.h
index 9d584f07f..cc8ccddce 100644
--- a/project/include/Pixel.h
+++ b/project/include/Pixel.h
@@ -1,12 +1,12 @@
-#ifndef NME_PIXEL_H
-#define NME_PIXEL_H
+#ifndef LIME_PIXEL_H
+#define LIME_PIXEL_H
// The order or RGB or BGR is determined to the primary surface's
// native order - this allows most transfers to be donw without swapping R & B
// When rendering from a source to a dest, the source is swapped to match in
// the blending code.
-namespace nme
+namespace lime
{
extern bool gC0IsRed;
@@ -289,6 +289,6 @@ inline void QBlendAlpha(Uint8 &ioDest, Uint8 inSrc)
-} // end namespace nme
+} // end namespace lime
#endif
diff --git a/project/include/QuickVec.h b/project/include/QuickVec.h
index b2f6ee69d..5925233ff 100644
--- a/project/include/QuickVec.h
+++ b/project/include/QuickVec.h
@@ -1,5 +1,5 @@
-#ifndef NME_QUICK_VEC
-#define NME_QUICK_VEC
+#ifndef LIME_QUICK_VEC
+#define LIME_QUICK_VEC
#include
#ifdef EPPC
@@ -9,7 +9,7 @@
#endif
#include
-namespace nme
+namespace lime
{
template
@@ -448,6 +448,6 @@ public:
};
-} // end namespace nme
+} // end namespace lime
#endif
diff --git a/project/include/Scale9.h b/project/include/Scale9.h
index b57153b36..67fe3bd8a 100644
--- a/project/include/Scale9.h
+++ b/project/include/Scale9.h
@@ -1,10 +1,10 @@
-#ifndef NME_SCALE9_H
-#define NME_SCALE9_H
+#ifndef LIME_SCALE9_H
+#define LIME_SCALE9_H
#include
#include
-namespace nme
+namespace lime
{
class Scale9
@@ -99,7 +99,7 @@ public:
};
-} // end namespace nme
+} // end namespace lime
#endif
diff --git a/project/include/Sound.h b/project/include/Sound.h
index 18474a9ed..c1264c526 100644
--- a/project/include/Sound.h
+++ b/project/include/Sound.h
@@ -6,7 +6,7 @@
#include "Object.h"
#include "ByteArray.h"
-namespace nme
+namespace lime
{
struct SoundTransform
@@ -57,7 +57,7 @@ public:
virtual SoundChannel *openChannel(double startTime, int loops, const SoundTransform &inTransform) = 0;
};
-} // end namespace nme
+} // end namespace lime
#endif
diff --git a/project/include/TextField.h b/project/include/TextField.h
index 168658b41..63149998e 100644
--- a/project/include/TextField.h
+++ b/project/include/TextField.h
@@ -1,5 +1,5 @@
-#ifndef NME_TEXT_FIELD_H
-#define NME_TEXT_FIELD_H
+#ifndef LIME_TEXT_FIELD_H
+#define LIME_TEXT_FIELD_H
#include "Utils.h"
#include "Graphics.h"
@@ -9,7 +9,7 @@
class TiXmlNode;
-namespace nme
+namespace lime
{
@@ -217,7 +217,7 @@ private:
int mSelectKeyDown;
};
-} // end namespace nme
+} // end namespace lime
#endif
diff --git a/project/include/Tilesheet.h b/project/include/Tilesheet.h
index 1271cf8a0..18893a90b 100644
--- a/project/include/Tilesheet.h
+++ b/project/include/Tilesheet.h
@@ -1,10 +1,10 @@
-#ifndef NME_TILESHEET_H
-#define NME_TILESHEET_H
+#ifndef LIME_TILESHEET_H
+#define LIME_TILESHEET_H
#include
#include
-namespace nme
+namespace lime
{
struct Tile
diff --git a/project/include/URL.h b/project/include/URL.h
index a7906739b..d253e6ffa 100644
--- a/project/include/URL.h
+++ b/project/include/URL.h
@@ -1,5 +1,5 @@
-#ifndef NME_URL_H
-#define NME_URL_H
+#ifndef LIME_URL_H
+#define LIME_URL_H
#include "Object.h"
#include "ByteArray.h"
@@ -8,7 +8,7 @@
#include
-namespace nme
+namespace lime
{
enum URLState
diff --git a/project/include/Utils.h b/project/include/Utils.h
index f3faa382a..992d07168 100644
--- a/project/include/Utils.h
+++ b/project/include/Utils.h
@@ -1,5 +1,5 @@
-#ifndef NME_UTILS_H
-#define NME_UTILS_H
+#ifndef LIME_UTILS_H
+#define LIME_UTILS_H
#include
#include
@@ -15,12 +15,12 @@
#include
#ifdef VERBOSE
-#define VLOG(args...) __android_log_print(ANDROID_LOG_INFO, "NME",args)
+#define VLOG(args...) __android_log_print(ANDROID_LOG_INFO, "lime",args)
#else
#define VLOG(args...)
#endif
-#define ELOG(args...) __android_log_print(ANDROID_LOG_ERROR, "NME",args)
+#define ELOG(args...) __android_log_print(ANDROID_LOG_ERROR, "lime",args)
#elif defined(TIZEN)
@@ -77,7 +77,7 @@ inline void DontLog(const char *inFormat,...) { }
-namespace nme
+namespace lime
{
extern std::string gAssetBase;
@@ -187,11 +187,11 @@ FILE *OpenOverwrite(const char *inName); // [ddc]
extern int gFixedOrientation;
#elif defined(HX_MACOS)
-} // close namespace nme
+} // close namespace lime
extern "C" FILE *OpenRead(const char *inName);
extern "C" bool GetBundleFilename(const char *inName, char *outBuffer,int inBufSize);
extern "C" FILE *OpenOverwrite(const char *inName);
-namespace nme {
+namespace lime {
#else
#define OpenRead(x) fopen(x,"rb")
#define OpenOverwrite(x) fopen(x,"wb") // [ddc]
diff --git a/project/include/Video.h b/project/include/Video.h
index a7b137fbd..e608ff38e 100644
--- a/project/include/Video.h
+++ b/project/include/Video.h
@@ -3,7 +3,7 @@
#include "Display.h"
-namespace nme {
+namespace lime {
class Video : public DisplayObject {
public:
diff --git a/project/include/platform/tizen/TizenApplication.h b/project/include/platform/tizen/TizenApplication.h
index 903def6ec..88afc82d2 100644
--- a/project/include/platform/tizen/TizenApplication.h
+++ b/project/include/platform/tizen/TizenApplication.h
@@ -13,7 +13,7 @@
#include
-namespace nme {
+namespace lime {
class TizenApplication : public Tizen::App::UiApp, public Tizen::System::IScreenEventListener, public Tizen::Ui::IKeyEventListener, public Tizen::Base::Runtime::ITimerEventListener {
diff --git a/project/include/platform/tizen/TizenFrame.h b/project/include/platform/tizen/TizenFrame.h
index 9ffd7737c..26d9824e0 100644
--- a/project/include/platform/tizen/TizenFrame.h
+++ b/project/include/platform/tizen/TizenFrame.h
@@ -6,7 +6,7 @@
#include "platform/tizen/TizenStage.h"
-namespace nme {
+namespace lime {
class TizenFrame : public Frame {
diff --git a/project/include/platform/tizen/TizenStage.h b/project/include/platform/tizen/TizenStage.h
index 729fcba12..4402929e3 100644
--- a/project/include/platform/tizen/TizenStage.h
+++ b/project/include/platform/tizen/TizenStage.h
@@ -7,7 +7,7 @@
#include "renderer/common/HardwareContext.h"
-namespace nme {
+namespace lime {
class TizenStage : public Stage {
diff --git a/project/include/platform/tizen/TizenUIApp.h b/project/include/platform/tizen/TizenUIApp.h
index 3f6391aa1..2f78a0584 100644
--- a/project/include/platform/tizen/TizenUIApp.h
+++ b/project/include/platform/tizen/TizenUIApp.h
@@ -15,7 +15,7 @@
//#include "GlRendererTemplate.h"
-namespace nme {
+namespace lime {
class TizenUIApp : public Tizen::App::UiApp, public Tizen::System::IScreenEventListener, public Tizen::Ui::IKeyEventListener {
diff --git a/project/include/platform/tizen/TizenUIFrame.h b/project/include/platform/tizen/TizenUIFrame.h
index 4397a8605..a42ef6410 100644
--- a/project/include/platform/tizen/TizenUIFrame.h
+++ b/project/include/platform/tizen/TizenUIFrame.h
@@ -11,7 +11,7 @@
#include
-namespace nme {
+namespace lime {
class TizenUIFrame : public Tizen::Ui::Controls::Frame {
diff --git a/project/include/renderer/common/AutoSurfaceRender.h b/project/include/renderer/common/AutoSurfaceRender.h
index 2e9c86f43..0b55c7989 100644
--- a/project/include/renderer/common/AutoSurfaceRender.h
+++ b/project/include/renderer/common/AutoSurfaceRender.h
@@ -5,7 +5,7 @@
#include "renderer/common/Surface.h"
-namespace nme {
+namespace lime {
class AutoSurfaceRender {
diff --git a/project/include/renderer/common/BitmapCache.h b/project/include/renderer/common/BitmapCache.h
index 60b09c49f..53dcdef70 100644
--- a/project/include/renderer/common/BitmapCache.h
+++ b/project/include/renderer/common/BitmapCache.h
@@ -6,7 +6,7 @@
#include "renderer/common/Surface.h"
-namespace nme {
+namespace lime {
class BitmapCache {
diff --git a/project/include/renderer/common/BlendMode.h b/project/include/renderer/common/BlendMode.h
index ceb531565..ee074b16d 100644
--- a/project/include/renderer/common/BlendMode.h
+++ b/project/include/renderer/common/BlendMode.h
@@ -6,7 +6,7 @@
#include "renderer/common/BitmapCache.h"
-namespace nme {
+namespace lime {
struct NullMask
diff --git a/project/include/renderer/common/HardwareContext.h b/project/include/renderer/common/HardwareContext.h
index 54bf137e7..d4a6e9310 100644
--- a/project/include/renderer/common/HardwareContext.h
+++ b/project/include/renderer/common/HardwareContext.h
@@ -6,7 +6,7 @@
#include
-namespace nme {
+namespace lime {
class HardwareContext : public Object {
diff --git a/project/include/renderer/common/HardwareSurface.h b/project/include/renderer/common/HardwareSurface.h
index 2890f980c..df3bc0bdf 100644
--- a/project/include/renderer/common/HardwareSurface.h
+++ b/project/include/renderer/common/HardwareSurface.h
@@ -6,7 +6,7 @@
#include "renderer/common/HardwareContext.h"
-namespace nme {
+namespace lime {
class HardwareSurface : public Surface {
diff --git a/project/include/renderer/common/SimpleSurface.h b/project/include/renderer/common/SimpleSurface.h
index 2d39b3cf3..dc4dcb140 100644
--- a/project/include/renderer/common/SimpleSurface.h
+++ b/project/include/renderer/common/SimpleSurface.h
@@ -5,7 +5,7 @@
#include "renderer/common/Surface.h"
-namespace nme {
+namespace lime {
class SimpleSurface : public Surface {
diff --git a/project/include/renderer/common/Surface.h b/project/include/renderer/common/Surface.h
index cc53e795a..03673f6ec 100644
--- a/project/include/renderer/common/Surface.h
+++ b/project/include/renderer/common/Surface.h
@@ -9,7 +9,7 @@
#include "renderer/common/HardwareContext.h"
-namespace nme {
+namespace lime {
void HintColourOrder (bool inRedFirst);
@@ -65,7 +65,7 @@ namespace nme {
void Bind (HardwareContext &inHardware, int inSlot = 0);
int BytesPP () const { return Format () == pfAlpha ? 1 : 4; }
- bool Encode (nme::ByteArray *outBytes, bool inPNG, double inQuality);
+ bool Encode (lime::ByteArray *outBytes, bool inPNG, double inQuality);
Texture *GetOrCreateTexture (HardwareContext &inHardware);
Texture *GetTexture () { return mTexture; }
Surface *IncRef () { mRefCount++; return this; }
diff --git a/project/include/renderer/common/Texture.h b/project/include/renderer/common/Texture.h
index e41919d34..527140d09 100644
--- a/project/include/renderer/common/Texture.h
+++ b/project/include/renderer/common/Texture.h
@@ -2,7 +2,7 @@
#define RENDERER_TEXTURE_H
-namespace nme {
+namespace lime {
extern int gTextureContextVersion;
diff --git a/project/include/renderer/opengl/Egl.h b/project/include/renderer/opengl/Egl.h
index 73d9a511e..a42c7547b 100644
--- a/project/include/renderer/opengl/Egl.h
+++ b/project/include/renderer/opengl/Egl.h
@@ -1,10 +1,10 @@
-#ifndef NME_OPENGL_EGL
-#define NME_OPENGL_EGL
+#ifndef LIME_OPENGL_EGL
+#define LIME_OPENGL_EGL
-void nmeEGLDestroy();
-void nmeEGLSwapBuffers();
-bool nmeEGLResize(void *inX11Window, int &ioWidth, int &ioHeight);
-bool nmeEGLCreate(void *inX11Window, int &ioWidth, int &ioHeight,
+void limeEGLDestroy();
+void limeEGLSwapBuffers();
+bool limeEGLResize(void *inX11Window, int &ioWidth, int &ioHeight);
+bool limeEGLCreate(void *inX11Window, int &ioWidth, int &ioHeight,
int inOGLESVersion,
int inDepthBits,
int inStencilBits,
diff --git a/project/include/renderer/opengl/OGL.h b/project/include/renderer/opengl/OGL.h
index c54e42eda..8048b4f41 100644
--- a/project/include/renderer/opengl/OGL.h
+++ b/project/include/renderer/opengl/OGL.h
@@ -3,9 +3,9 @@
#if defined(BLACKBERRY) || defined(ANDROID) || defined(WEBOS) || defined(GPH) || defined(RASPBERRYPI) || defined(EMSCRIPTEN)
-#define NME_GLES
+#define LIME_GLES
-#ifdef NME_FORCE_GLES1
+#ifdef LIME_FORCE_GLES1
#include
#include
@@ -15,7 +15,7 @@
#include
#include
#define ALLOW_OGL2
-#define NME_FORCE_GLES2
+#define LIME_FORCE_GLES2
#endif
@@ -29,9 +29,9 @@ using namespace Tizen::Graphics::Opengl;
//#include
//#define ALLOW_OGL2
-//#define NME_FORCE_GLES2
-#define NME_FORCE_GLES1
-#define NME_GLES
+//#define LIME_FORCE_GLES2
+#define LIME_FORCE_GLES1
+#define LIME_GLES
#elif defined(IPHONE)
@@ -43,7 +43,7 @@ using namespace Tizen::Graphics::Opengl;
//typedef CAEAGLLayer *WinDC;
//typedef EAGLContext *GLCtx;
-#define NME_GLES
+#define LIME_GLES
#elif !defined(HX_WINDOWS)
@@ -178,7 +178,7 @@ typedef void *GLCtx;
#ifdef GPH
-#define NME_DITHER
+#define LIME_DITHER
#endif
#include
@@ -195,7 +195,7 @@ typedef void *GLCtx;
#undef DECLARE_EXTENSION
#endif
-namespace nme
+namespace lime
{
Texture *OGLCreateTexture(Surface *inSurface,unsigned int inFlags);
@@ -241,7 +241,7 @@ public:
void InitOGL2Extensions();
-} // end namespace nme
+} // end namespace lime
#endif // INCLUDED_OGL_H
diff --git a/project/include/renderer/opengl/OpenGL2Context.h b/project/include/renderer/opengl/OpenGL2Context.h
index 15585b484..cc0602331 100644
--- a/project/include/renderer/opengl/OpenGL2Context.h
+++ b/project/include/renderer/opengl/OpenGL2Context.h
@@ -5,7 +5,7 @@
#include "OpenGLContext.h"
-namespace nme {
+namespace lime {
class OpenGL2Context : public OpenGLContext {
diff --git a/project/include/renderer/opengl/OpenGLContext.h b/project/include/renderer/opengl/OpenGLContext.h
index dbcc4b0a2..55d86f731 100644
--- a/project/include/renderer/opengl/OpenGLContext.h
+++ b/project/include/renderer/opengl/OpenGLContext.h
@@ -2,12 +2,12 @@
#define RENDERER_OPENGL_CONTEXT_H
-#include
+#include
#include "renderer/opengl/OGL.h"
#include "renderer/common/HardwareContext.h"
-namespace nme {
+namespace lime {
class OpenGLContext : public HardwareContext {
diff --git a/project/include/renderer/opengl/OpenGLProgram.h b/project/include/renderer/opengl/OpenGLProgram.h
index 27aefb975..a51228aec 100644
--- a/project/include/renderer/opengl/OpenGLProgram.h
+++ b/project/include/renderer/opengl/OpenGLProgram.h
@@ -5,7 +5,7 @@
#include "renderer/opengl/OGL.h"
-namespace nme {
+namespace lime {
class OpenGLProgram : public GPUProg {
diff --git a/project/include/renderer/opengl/OpenGLTexture.h b/project/include/renderer/opengl/OpenGLTexture.h
index e1dff443f..c09476bfd 100644
--- a/project/include/renderer/opengl/OpenGLTexture.h
+++ b/project/include/renderer/opengl/OpenGLTexture.h
@@ -6,7 +6,7 @@
#include "renderer/common/Texture.h"
-namespace nme {
+namespace lime {
class OpenGLTexture : public Texture {
diff --git a/project/src/backend/directfb/DirectFBHardware.cpp b/project/src/backend/directfb/DirectFBHardware.cpp
index fcdb1aed9..889671595 100644
--- a/project/src/backend/directfb/DirectFBHardware.cpp
+++ b/project/src/backend/directfb/DirectFBHardware.cpp
@@ -4,7 +4,7 @@
#include
-namespace nme
+namespace lime
{
@@ -687,4 +687,4 @@ bool HardwareContext::Hits(const RenderState &inState, const HardwareCalls &inCa
-} // end namespace nme
+} // end namespace lime
diff --git a/project/src/backend/directfb/DirectFBKeyInputEventConvert.cpp b/project/src/backend/directfb/DirectFBKeyInputEventConvert.cpp
index 7b02d6ca7..04b4dcc19 100644
--- a/project/src/backend/directfb/DirectFBKeyInputEventConvert.cpp
+++ b/project/src/backend/directfb/DirectFBKeyInputEventConvert.cpp
@@ -7,7 +7,7 @@ bool DirectFBKeyInputEventConvert(const DFBInputEvent &src, Event &dest)
// the 'left' version
bool left = true;
- // First set the NME Event's value to the key id
+ // First set the lime Event's value to the key id
// Handle a - z
if ((src.key_id >= DIKI_A) && (src.key_id <= DIKI_Z)) {
@@ -57,7 +57,7 @@ bool DirectFBKeyInputEventConvert(const DFBInputEvent &src, Event &dest)
break;
case DIKI_NUM_LOCK:
case DIKI_SCROLL_LOCK:
- // Unknown to NME
+ // Unknown to lime
return false;
case DIKI_ESCAPE:
dest.value = keyESCAPE;
@@ -106,7 +106,7 @@ bool DirectFBKeyInputEventConvert(const DFBInputEvent &src, Event &dest)
break;
case DIKI_PRINT:
case DIKI_PAUSE:
- // Unknown to NME
+ // Unknown to lime
return false;
case DIKI_QUOTE_LEFT: /* TLDE */
dest.value = keyQUOTE;
@@ -142,7 +142,7 @@ bool DirectFBKeyInputEventConvert(const DFBInputEvent &src, Event &dest)
dest.value = keySLASH;
break;
case DIKI_LESS_SIGN: /* 103rd */
- // Unknown to NME
+ // Unknown to lime
return false;
case DIKI_KP_DIV:
dest.value = keyNUMPAD_DIVIDE;
@@ -171,7 +171,7 @@ bool DirectFBKeyInputEventConvert(const DFBInputEvent &src, Event &dest)
case DIKI_KP_F4:
case DIKI_KP_EQUAL:
case DIKI_KP_SEPARATOR:
- // Unknown to NME
+ // Unknown to lime
return false;
case DIKI_KP_DECIMAL:
dest.value = keyNUMPAD_DECIMAL;
@@ -198,7 +198,7 @@ bool DirectFBKeyInputEventConvert(const DFBInputEvent &src, Event &dest)
dest.flags |= efCommandDown;
}
- // Finally set the NME Event's code to the "symbol"
+ // Finally set the lime Event's code to the "symbol"
dest.code = src.key_symbol;
return true;
diff --git a/project/src/backend/directfb/DirectFBStage.cpp b/project/src/backend/directfb/DirectFBStage.cpp
index e0bbc86ea..39301bd09 100644
--- a/project/src/backend/directfb/DirectFBStage.cpp
+++ b/project/src/backend/directfb/DirectFBStage.cpp
@@ -6,7 +6,7 @@
#include
-namespace nme
+namespace lime
{
diff --git a/project/src/backend/glfw/GLFWStage.cpp b/project/src/backend/glfw/GLFWStage.cpp
index cd6a9cd21..65dd6d127 100644
--- a/project/src/backend/glfw/GLFWStage.cpp
+++ b/project/src/backend/glfw/GLFWStage.cpp
@@ -5,7 +5,7 @@
#include "renderer/common/HardwareContext.h"
#include
-namespace nme
+namespace lime
{
class GLFWFrame;
diff --git a/project/src/backend/sdl/SDLSound.cpp b/project/src/backend/sdl/SDLSound.cpp
index 04b41c0e2..c2f0f402e 100644
--- a/project/src/backend/sdl/SDLSound.cpp
+++ b/project/src/backend/sdl/SDLSound.cpp
@@ -6,7 +6,7 @@
#include
-namespace nme
+namespace lime
{
bool gSDLIsInit = false;
diff --git a/project/src/backend/sdl/SDLStage.cpp b/project/src/backend/sdl/SDLStage.cpp
index b5270e016..add5bd687 100644
--- a/project/src/backend/sdl/SDLStage.cpp
+++ b/project/src/backend/sdl/SDLStage.cpp
@@ -28,7 +28,7 @@
#include
#endif
-#ifdef NME_MIXER
+#ifdef LIME_MIXER
#include
#endif
@@ -70,7 +70,7 @@ void done_win32()
#endif
-namespace nme
+namespace lime
{
static int sgDesktopWidth = 0;
@@ -371,11 +371,11 @@ public:
if(SDL_GetWMInfo(&sysInfo)>0)
{
void *window = (void *)(size_t)sysInfo.info.x11.window;
- nmeEGLResize(window, inWidth, inHeight);
+ limeEGLResize(window, inWidth, inHeight);
}
#endif
- //nme_resize_id ++;
+ //lime_resize_id ++;
mOpenGLContext->DecRef();
mOpenGLContext = HardwareContext::CreateOpenGL(0, 0, sgIsOGL2);
mOpenGLContext->SetWindowSize(inWidth, inHeight);
@@ -434,7 +434,7 @@ public:
h = mSDLSurface->h;
if (mIsOpenGL)
{
- //nme_resize_id ++;
+ //lime_resize_id ++;
mOpenGLContext->DecRef();
mOpenGLContext = HardwareContext::CreateOpenGL(0, 0, sgIsOGL2);
mOpenGLContext->SetWindowSize(w, h);
@@ -534,7 +534,7 @@ public:
if (mIsOpenGL)
{
#ifdef RASPBERRYPI
- nmeEGLSwapBuffers();
+ limeEGLSwapBuffers();
#else
SDL_GL_SwapBuffers();
#endif
@@ -1056,7 +1056,7 @@ void CreateMainFrame(FrameCreationCallback inOnFrame,int inWidth,int inHeight,
gSDLIsInit = true;
- #ifdef NME_MIXER
+ #ifdef LIME_MIXER
#ifdef WEBOS
int chunksize = 256;
@@ -1134,12 +1134,12 @@ void CreateMainFrame(FrameCreationCallback inOnFrame,int inWidth,int inHeight,
sgIsOGL2 = false;
#ifdef RASPBERRYPI
- bool nmeEgl = true;
+ bool limeEgl = true;
#else
- bool nmeEgl = false;
+ bool limeEgl = false;
#endif
- if (opengl && !nmeEgl)
+ if (opengl && !limeEgl)
{
int aa_tries = (inFlags & wfHW_AA) ? ( (inFlags & wfHW_AA_HIRES) ? 2 : 1 ) : 0;
@@ -1161,7 +1161,7 @@ void CreateMainFrame(FrameCreationCallback inOnFrame,int inWidth,int inHeight,
int oglLevelPasses = 1;
- #if !defined(NME_FORCE_GLES1) && (defined(WEBOS) || defined(BLACKBERRY) || defined(EMSCRIPTEN))
+ #if !defined(LIME_FORCE_GLES1) && (defined(WEBOS) || defined(BLACKBERRY) || defined(EMSCRIPTEN))
// Try 2 then 1 ?
if ( (inFlags & wfAllowShaders) && !(inFlags & wfRequireShaders) )
oglLevelPasses = 2;
@@ -1171,7 +1171,7 @@ void CreateMainFrame(FrameCreationCallback inOnFrame,int inWidth,int inHeight,
for(int oglPass = 0; oglPass< oglLevelPasses && !is_opengl; oglPass++)
{
- #ifdef NME_FORCE_GLES1
+ #ifdef LIME_FORCE_GLES1
int level = 1;
#else
int level = (inFlags & wfRequireShaders) ? 2 : (inFlags & wfAllowShaders) ? 2-oglPass : 1;
@@ -1240,7 +1240,7 @@ void CreateMainFrame(FrameCreationCallback inOnFrame,int inWidth,int inHeight,
if (!screen)
{
- if (!opengl || !nmeEgl)
+ if (!opengl || !limeEgl)
sdl_flags |= SDL_DOUBLEBUF;
screen = SDL_SetVideoMode( use_w, use_h, 32, sdl_flags );
@@ -1260,7 +1260,7 @@ void CreateMainFrame(FrameCreationCallback inOnFrame,int inWidth,int inHeight,
use_w = screen->w;
use_h = screen->h;
- bool ok = nmeEGLCreate( 0, use_w, use_h,
+ bool ok = limeEGLCreate( 0, use_w, use_h,
sgIsOGL2,
(inFlags & wfDepthBuffer) ? 16 : 0,
(inFlags & wfStencilBuffer) ? 8 : 0,
@@ -1403,7 +1403,7 @@ void ResumeAnimation() {}
void StopAnimation()
{
- #ifdef NME_MIXER
+ #ifdef LIME_MIXER
Mix_CloseAudio();
#endif
#ifdef WEBOS
@@ -1524,7 +1524,7 @@ Frame *CreateTopLevelWindow(int inWidth,int inHeight,unsigned int inFlags, wchar
*/
-} // end namespace nme
+} // end namespace lime
#if 0
@@ -1578,7 +1578,7 @@ Frame *CreateTopLevelWindow(int inWidth,int inHeight,unsigned int inFlags, wchar
-value nme_get_mouse_position()
+value lime_get_mouse_position()
{
int x,y;
diff --git a/project/src/backend/sdl2/SDL2Stage.cpp b/project/src/backend/sdl2/SDL2Stage.cpp
index dd217cbcc..9c3066e1b 100644
--- a/project/src/backend/sdl2/SDL2Stage.cpp
+++ b/project/src/backend/sdl2/SDL2Stage.cpp
@@ -8,12 +8,12 @@
#include
#include