summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-03-15 13:29:59 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2013-11-03 12:12:07 +0100
commit924a732e7cf26c571f29ff97ba7e8089c7db54c0 (patch)
treefe13adbfa5fd32fece2a0b72eff343be142c2cdc /src
parent9a5fcd3206a510ef1050a86d22eda86cf44b25cb (diff)
shl: move static_gl_* to shl_gl_*
No need to keep these static helpers outside of SHL. Instead, include them in SHL to avoid any external linking. Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/shl_gl.h (renamed from src/static_gl.h)12
-rw-r--r--src/shl_gl_math.c (renamed from src/static_gl_math.c)7
-rw-r--r--src/shl_gl_shader.c (renamed from src/static_gl_shader.c)7
-rw-r--r--src/text_gltex.c2
-rw-r--r--src/uterm_drm3d_render.c2
-rw-r--r--src/uterm_drm3d_video.c1
6 files changed, 14 insertions, 17 deletions
diff --git a/src/static_gl.h b/src/shl_gl.h
index 8709adc..ccff76b 100644
--- a/src/static_gl.h
+++ b/src/shl_gl.h
@@ -1,8 +1,7 @@
/*
- * kmscon - OpenGL Helpers
+ * shl - OpenGL Helpers
*
- * Copyright (c) 2011-2012 David Herrmann <dh.herrmann@googlemail.com>
- * Copyright (c) 2011 University of Tuebingen
+ * Copyright (c) 2011-2013 David Herrmann <dh.herrmann@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
@@ -28,10 +27,11 @@
* OpenGL Helpers
* This file provides several helper functions that are commonly used when
* working with OpenGL.
+ * TODO: Rename to shl_gl_* prefix.
*/
-#ifndef GL_H_INCLUDED
-#define GL_H_INCLUDED
+#ifndef SHL_GL_H
+#define SHL_GL_H
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
@@ -88,4 +88,4 @@ void gl_clear_error();
bool gl_has_error(struct gl_shader *shader);
const char *gl_err_to_str(GLenum err);
-#endif /* GL_H_INCLUDED */
+#endif /* SHL_GL_H */
diff --git a/src/static_gl_math.c b/src/shl_gl_math.c
index 5d6ae26..a3a3a1d 100644
--- a/src/static_gl_math.c
+++ b/src/shl_gl_math.c
@@ -1,8 +1,7 @@
/*
- * kmscon - GL Math Helpers
+ * shl - OpenGL Helpers
*
- * Copyright (c) 2011 David Herrmann <dh.herrmann@googlemail.com>
- * Copyright (c) 2011 University of Tuebingen
+ * Copyright (c) 2011-2013 David Herrmann <dh.herrmann@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
@@ -32,7 +31,7 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
-#include "static_gl.h"
+#include "shl_gl.h"
struct gl_m4_entry {
struct gl_m4_entry *next;
diff --git a/src/static_gl_shader.c b/src/shl_gl_shader.c
index ce9b462..093d786 100644
--- a/src/static_gl_shader.c
+++ b/src/shl_gl_shader.c
@@ -1,8 +1,7 @@
/*
- * GL - Graphics Layer
+ * shl - OpenGL Helpers
*
- * Copyright (c) 2011-2012 David Herrmann <dh.herrmann@googlemail.com>
- * Copyright (c) 2011 University of Tuebingen
+ * Copyright (c) 2011-2013 David Herrmann <dh.herrmann@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
@@ -38,8 +37,8 @@
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
+#include "shl_gl.h"
#include "shl_llog.h"
-#include "static_gl.h"
#define LLOG_SUBSYSTEM "gl_shader"
diff --git a/src/text_gltex.c b/src/text_gltex.c
index 9c0b06b..b0abcbd 100644
--- a/src/text_gltex.c
+++ b/src/text_gltex.c
@@ -46,10 +46,10 @@
#include <stdlib.h>
#include <string.h>
#include "shl_dlist.h"
+#include "shl_gl.h"
#include "shl_hashtable.h"
#include "shl_log.h"
#include "shl_misc.h"
-#include "static_gl.h"
#include "text.h"
#include "uterm_video.h"
diff --git a/src/uterm_drm3d_render.c b/src/uterm_drm3d_render.c
index 6080d2c..c7a213d 100644
--- a/src/uterm_drm3d_render.c
+++ b/src/uterm_drm3d_render.c
@@ -45,8 +45,8 @@
#include <xf86drm.h>
#include <xf86drmMode.h>
#include "eloop.h"
+#include "shl_gl.h"
#include "shl_log.h"
-#include "static_gl.h"
#include "uterm_drm_shared_internal.h"
#include "uterm_drm3d_internal.h"
#include "uterm_video.h"
diff --git a/src/uterm_drm3d_video.c b/src/uterm_drm3d_video.c
index 2184e71..4c7f877 100644
--- a/src/uterm_drm3d_video.c
+++ b/src/uterm_drm3d_video.c
@@ -47,7 +47,6 @@
#include "eloop.h"
#include "shl_log.h"
#include "shl_misc.h"
-#include "static_gl.h"
#include "uterm_drm_shared_internal.h"
#include "uterm_drm3d_internal.h"
#include "uterm_video.h"