summaryrefslogtreecommitdiffstats
path: root/video/out/gl_common.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-02-24 23:32:51 +0100
committerwm4 <wm4@nowhere>2013-02-26 02:01:48 +0100
commit423c0b13c4ffaf8ba619a4412b90a4b94fccce3c (patch)
treed63e256901015ac5ffd039f5f6c51f9fbefddb8c /video/out/gl_common.h
parentc61f1ff61b8282d9938671543fa6a63d25cf5fc0 (diff)
downloadmpv-423c0b13c4ffaf8ba619a4412b90a4b94fccce3c.tar.bz2
mpv-423c0b13c4ffaf8ba619a4412b90a4b94fccce3c.tar.xz
video/out: rename create_window to config_window
create_window is really bad naming, because this function can be called multiple times, while the name implies that it always creates a new window. At least the name config_window is not actively misleading.
Diffstat (limited to 'video/out/gl_common.h')
-rw-r--r--video/out/gl_common.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/video/out/gl_common.h b/video/out/gl_common.h
index a3ab8bf287..cda99b9bff 100644
--- a/video/out/gl_common.h
+++ b/video/out/gl_common.h
@@ -108,7 +108,7 @@ typedef struct MPGLContext {
// Bit size of each component in the created framebuffer. 0 if unknown.
int depth_r, depth_g, depth_b;
- // GL version requested from create_window_gl3 backend (MPGL_VER mangled).
+ // GL version requested from config_window_gl3 backend (MPGL_VER mangled).
// (Might be different from the actual version in gl->version.)
int requested_gl_version;
@@ -126,7 +126,7 @@ typedef struct MPGLContext {
// GL context. (The caller must check if the created GL version is ok. The
// callee must try to fall back to an older version if the requested
// version is not available, and newer versions are incompatible.)
- bool (*create_window)(struct MPGLContext *ctx, uint32_t d_width,
+ bool (*config_window)(struct MPGLContext *ctx, uint32_t d_width,
uint32_t d_height, uint32_t flags);
// optional
@@ -147,11 +147,11 @@ MPGLContext *mpgl_init(enum MPGLType type, struct vo *vo);
void mpgl_uninit(MPGLContext *ctx);
// Create a VO window and create a GL context on it.
-// (Calls create_window_gl3 or create_window+setGlWindow.)
+// (Calls config_window_gl3 or config_window+setGlWindow.)
// gl_caps: bitfield of MPGL_CAP_* (required GL version and feature set)
// flags: passed to the backend's create window function
// Returns success.
-bool mpgl_create_window(struct MPGLContext *ctx, int gl_caps, uint32_t d_width,
+bool mpgl_config_window(struct MPGLContext *ctx, int gl_caps, uint32_t d_width,
uint32_t d_height, uint32_t flags);
// Destroy the window, without resetting GL3 vs. GL2 context choice.