Initial pass on renaming project code to lime
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include "renderer/common/Surface.h"
|
||||
|
||||
|
||||
namespace nme {
|
||||
namespace lime {
|
||||
|
||||
|
||||
class AutoSurfaceRender {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "renderer/common/Surface.h"
|
||||
|
||||
|
||||
namespace nme {
|
||||
namespace lime {
|
||||
|
||||
|
||||
class BitmapCache {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "renderer/common/BitmapCache.h"
|
||||
|
||||
|
||||
namespace nme {
|
||||
namespace lime {
|
||||
|
||||
|
||||
struct NullMask
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <Graphics.h>
|
||||
|
||||
|
||||
namespace nme {
|
||||
namespace lime {
|
||||
|
||||
|
||||
class HardwareContext : public Object {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "renderer/common/HardwareContext.h"
|
||||
|
||||
|
||||
namespace nme {
|
||||
namespace lime {
|
||||
|
||||
|
||||
class HardwareSurface : public Surface {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "renderer/common/Surface.h"
|
||||
|
||||
|
||||
namespace nme {
|
||||
namespace lime {
|
||||
|
||||
|
||||
class SimpleSurface : public Surface {
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define RENDERER_TEXTURE_H
|
||||
|
||||
|
||||
namespace nme {
|
||||
namespace lime {
|
||||
|
||||
|
||||
extern int gTextureContextVersion;
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "OpenGLContext.h"
|
||||
|
||||
|
||||
namespace nme {
|
||||
namespace lime {
|
||||
|
||||
|
||||
class OpenGL2Context : public OpenGLContext {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "renderer/opengl/OGL.h"
|
||||
|
||||
|
||||
namespace nme {
|
||||
namespace lime {
|
||||
|
||||
|
||||
class OpenGLProgram : public GPUProg {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "renderer/common/Texture.h"
|
||||
|
||||
|
||||
namespace nme {
|
||||
namespace lime {
|
||||
|
||||
|
||||
class OpenGLTexture : public Texture {
|
||||
|
||||
Reference in New Issue
Block a user