remove "namespace jes" wrapper around C++ content
This commit is contained in:
parent
b6c5e9e1d7
commit
c3b4c33304
@ -7,8 +7,6 @@
|
||||
#include <unistd.h>
|
||||
#include <stdint.h>
|
||||
|
||||
namespace jes
|
||||
{
|
||||
FileLoader::FileLoader()
|
||||
{
|
||||
m_buf = NULL;
|
||||
@ -102,4 +100,3 @@ namespace jes
|
||||
{
|
||||
return new Text((*m_lines)[line_no].first, (*m_lines)[line_no].second);
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,8 +6,6 @@
|
||||
#include <stdint.h>
|
||||
#include <vector>
|
||||
|
||||
namespace jes
|
||||
{
|
||||
class FileLoader
|
||||
{
|
||||
public:
|
||||
@ -45,6 +43,5 @@ namespace jes
|
||||
LineIndexPairVectorRef m_lines;
|
||||
};
|
||||
typedef Ref<FileLoader> FileLoaderRef;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -10,8 +10,6 @@
|
||||
#define JES_O_BINARY 0
|
||||
#endif
|
||||
|
||||
namespace jes
|
||||
{
|
||||
bool FileReader::load(const char * fname, uint8_t ** buf, size_t * size)
|
||||
{
|
||||
struct stat st;
|
||||
@ -61,4 +59,3 @@ namespace jes
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -4,13 +4,10 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
namespace jes
|
||||
{
|
||||
class FileReader
|
||||
{
|
||||
public:
|
||||
static bool load(const char * fname, uint8_t ** buf, size_t * size);
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -4,8 +4,6 @@
|
||||
|
||||
#define round_up_26_6(val) (((val) + 63) >> 6u)
|
||||
|
||||
namespace jes
|
||||
{
|
||||
Font::Font()
|
||||
{
|
||||
m_loaded = false;
|
||||
@ -109,4 +107,3 @@ namespace jes
|
||||
m_loaded = true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,8 +8,6 @@
|
||||
#include <unordered_map>
|
||||
#include "GLTexture.h"
|
||||
|
||||
namespace jes
|
||||
{
|
||||
class Font
|
||||
{
|
||||
public:
|
||||
@ -62,6 +60,5 @@ namespace jes
|
||||
};
|
||||
|
||||
typedef Ref<Font> FontRef;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
#include "FontManager.h"
|
||||
#include <iostream>
|
||||
|
||||
namespace jes
|
||||
{
|
||||
bool FontManager::load()
|
||||
{
|
||||
if (FT_Init_FreeType(&m_ft) != 0)
|
||||
@ -39,4 +37,3 @@ namespace jes
|
||||
return font;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,8 +6,6 @@
|
||||
#include <ft2build.h>
|
||||
#include FT_FREETYPE_H
|
||||
|
||||
namespace jes
|
||||
{
|
||||
class FontManager
|
||||
{
|
||||
public:
|
||||
@ -20,6 +18,5 @@ namespace jes
|
||||
};
|
||||
|
||||
typedef Ref<FontManager> FontManagerRef;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -1,7 +1,5 @@
|
||||
#include "GLBuffer.h"
|
||||
|
||||
namespace jes
|
||||
{
|
||||
GLBuffer::GLBuffer()
|
||||
{
|
||||
m_id = 0;
|
||||
@ -27,4 +25,3 @@ namespace jes
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -4,8 +4,6 @@
|
||||
#include "Ref.h"
|
||||
#include "gl3w.h"
|
||||
|
||||
namespace jes
|
||||
{
|
||||
class GLBuffer
|
||||
{
|
||||
public:
|
||||
@ -19,6 +17,5 @@ namespace jes
|
||||
GLenum m_target;
|
||||
};
|
||||
typedef Ref<GLBuffer> GLBufferRef;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -4,8 +4,6 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace jes
|
||||
{
|
||||
GLProgram::GLProgram()
|
||||
{
|
||||
m_id = glCreateProgram();
|
||||
@ -82,4 +80,3 @@ namespace jes
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
@ -7,8 +7,6 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace jes
|
||||
{
|
||||
class GLProgram
|
||||
{
|
||||
public:
|
||||
@ -25,6 +23,5 @@ namespace jes
|
||||
std::map<std::string, GLint> m_uniforms;
|
||||
};
|
||||
typedef Ref<GLProgram> GLProgramRef;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -3,8 +3,6 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace jes
|
||||
{
|
||||
GLShader::~GLShader()
|
||||
{
|
||||
if (m_id > 0)
|
||||
@ -69,4 +67,3 @@ namespace jes
|
||||
delete[] file;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,8 +5,6 @@
|
||||
#include "Path.h"
|
||||
#include "gl3w.h"
|
||||
|
||||
namespace jes
|
||||
{
|
||||
class GLShader
|
||||
{
|
||||
public:
|
||||
@ -20,6 +18,5 @@ namespace jes
|
||||
GLuint m_id;
|
||||
};
|
||||
typedef Ref<GLShader> GLShaderRef;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -4,8 +4,6 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace jes
|
||||
{
|
||||
GLTexture::GLTexture()
|
||||
{
|
||||
glGenTextures(1, &m_id);
|
||||
@ -41,4 +39,3 @@ namespace jes
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, width, height, 0, GL_ALPHA, GL_UNSIGNED_BYTE, d);
|
||||
delete[] d;
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,8 +5,6 @@
|
||||
#include "gl3w.h"
|
||||
#include <stdint.h>
|
||||
|
||||
namespace jes
|
||||
{
|
||||
class GLTexture
|
||||
{
|
||||
public:
|
||||
@ -24,6 +22,5 @@ namespace jes
|
||||
unsigned int m_height;
|
||||
};
|
||||
typedef Ref<GLTexture> GLTextureRef;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -5,8 +5,6 @@
|
||||
#define WIDTH 500
|
||||
#define HEIGHT 500
|
||||
|
||||
namespace jes
|
||||
{
|
||||
bool GUI::load()
|
||||
{
|
||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
@ -148,4 +146,3 @@ namespace jes
|
||||
glVertexAttribIPointer(0, 2, GL_INT, 0, 0);
|
||||
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
|
||||
}
|
||||
}
|
||||
|
||||
@ -7,8 +7,6 @@
|
||||
#include "GLProgram.h"
|
||||
#include "GLBuffer.h"
|
||||
|
||||
namespace jes
|
||||
{
|
||||
class GUI
|
||||
{
|
||||
public:
|
||||
@ -35,6 +33,5 @@ namespace jes
|
||||
};
|
||||
|
||||
typedef Ref<GUI> GUIRef;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -5,8 +5,6 @@
|
||||
#include <unistd.h>
|
||||
#include <dirent.h>
|
||||
|
||||
namespace jes
|
||||
{
|
||||
Path::Path(const char * path)
|
||||
{
|
||||
m_path = path;
|
||||
@ -118,4 +116,3 @@ namespace jes
|
||||
c = '/';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,8 +6,6 @@
|
||||
#include <vector>
|
||||
#include <stdint.h>
|
||||
|
||||
namespace jes
|
||||
{
|
||||
class Path;
|
||||
typedef Ref<Path> PathRef;
|
||||
class Path
|
||||
@ -26,6 +24,5 @@ namespace jes
|
||||
void clean();
|
||||
std::string m_path;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -3,8 +3,6 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
namespace jes
|
||||
{
|
||||
template <typename T>
|
||||
class Ref
|
||||
{
|
||||
@ -99,6 +97,5 @@ namespace jes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
#include "Text.h"
|
||||
#include <string.h>
|
||||
|
||||
namespace jes
|
||||
{
|
||||
Text::Text()
|
||||
{
|
||||
m_buffer = NULL;
|
||||
@ -38,4 +36,3 @@ namespace jes
|
||||
m_gap_index = m_size - m_gap_size;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,8 +5,6 @@
|
||||
#include "Ref.h"
|
||||
#include <string>
|
||||
|
||||
namespace jes
|
||||
{
|
||||
class Text
|
||||
{
|
||||
public:
|
||||
@ -31,6 +29,5 @@ namespace jes
|
||||
size_t m_gap_size;
|
||||
};
|
||||
typedef Ref<Text> TextRef;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user