Initial pass on renaming project code to lime

This commit is contained in:
Joshua Granick
2013-11-27 18:05:59 -08:00
parent 00407203fa
commit b2da64c536
177 changed files with 1902 additions and 1900 deletions

View File

@@ -5,7 +5,7 @@
#include "renderer/common/Surface.h"
namespace nme {
namespace lime {
class AutoSurfaceRender {

View File

@@ -6,7 +6,7 @@
#include "renderer/common/Surface.h"
namespace nme {
namespace lime {
class BitmapCache {

View File

@@ -6,7 +6,7 @@
#include "renderer/common/BitmapCache.h"
namespace nme {
namespace lime {
struct NullMask

View File

@@ -6,7 +6,7 @@
#include <Graphics.h>
namespace nme {
namespace lime {
class HardwareContext : public Object {

View File

@@ -6,7 +6,7 @@
#include "renderer/common/HardwareContext.h"
namespace nme {
namespace lime {
class HardwareSurface : public Surface {

View File

@@ -5,7 +5,7 @@
#include "renderer/common/Surface.h"
namespace nme {
namespace lime {
class SimpleSurface : public Surface {

View File

@@ -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; }

View File

@@ -2,7 +2,7 @@
#define RENDERER_TEXTURE_H
namespace nme {
namespace lime {
extern int gTextureContextVersion;

View File

@@ -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,

View File

@@ -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 <GLES/gl.h>
#include <GLES/glext.h>
@@ -15,7 +15,7 @@
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#define ALLOW_OGL2
#define NME_FORCE_GLES2
#define LIME_FORCE_GLES2
#endif
@@ -29,9 +29,9 @@ using namespace Tizen::Graphics::Opengl;
//#include <osp/gl2.h>
//#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 <Graphics.h>
@@ -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

View File

@@ -5,7 +5,7 @@
#include "OpenGLContext.h"
namespace nme {
namespace lime {
class OpenGL2Context : public OpenGLContext {

View File

@@ -2,12 +2,12 @@
#define RENDERER_OPENGL_CONTEXT_H
#include <NMEThread.h>
#include <LimeThread.h>
#include "renderer/opengl/OGL.h"
#include "renderer/common/HardwareContext.h"
namespace nme {
namespace lime {
class OpenGLContext : public HardwareContext {

View File

@@ -5,7 +5,7 @@
#include "renderer/opengl/OGL.h"
namespace nme {
namespace lime {
class OpenGLProgram : public GPUProg {

View File

@@ -6,7 +6,7 @@
#include "renderer/common/Texture.h"
namespace nme {
namespace lime {
class OpenGLTexture : public Texture {