Cleanup: GPU: Change gpu_context_private.h to C++ only header
This commit is contained in:
@@ -124,7 +124,7 @@ set(SRC
|
||||
intern/gpu_backend.hh
|
||||
intern/gpu_batch_private.h
|
||||
intern/gpu_codegen.h
|
||||
intern/gpu_context_private.h
|
||||
intern/gpu_context_private.hh
|
||||
intern/gpu_material_library.h
|
||||
intern/gpu_matrix_private.h
|
||||
intern/gpu_node_graph.h
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include "GPU_shader.h"
|
||||
|
||||
#include "gpu_batch_private.h"
|
||||
#include "gpu_context_private.h"
|
||||
#include "gpu_context_private.hh"
|
||||
#include "gpu_primitive_private.h"
|
||||
#include "gpu_shader_private.h"
|
||||
#include "gpu_vertex_format_private.h"
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
#include "gpu_backend.hh"
|
||||
#include "gpu_batch_private.h"
|
||||
#include "gpu_context_private.h"
|
||||
#include "gpu_context_private.hh"
|
||||
#include "gpu_matrix_private.h"
|
||||
|
||||
#ifdef WITH_OPENGL_BACKEND
|
||||
|
||||
@@ -29,14 +29,11 @@
|
||||
|
||||
#include "GPU_context.h"
|
||||
|
||||
/* TODO cleanup this ifdef */
|
||||
#ifdef __cplusplus
|
||||
|
||||
# include <mutex>
|
||||
# include <pthread.h>
|
||||
# include <string.h>
|
||||
# include <unordered_set>
|
||||
# include <vector>
|
||||
#include <mutex>
|
||||
#include <pthread.h>
|
||||
#include <string.h>
|
||||
#include <unordered_set>
|
||||
#include <vector>
|
||||
|
||||
struct GPUFrameBuffer;
|
||||
struct GPUMatrixState;
|
||||
@@ -64,12 +61,6 @@ struct GPUContext {
|
||||
MEM_CXX_CLASS_ALLOC_FUNCS("GPUContext")
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
GLuint GPU_vao_default(void);
|
||||
GLuint GPU_framebuffer_default(void);
|
||||
|
||||
@@ -96,7 +87,3 @@ void gpu_context_active_framebuffer_set(GPUContext *ctx, struct GPUFrameBuffer *
|
||||
struct GPUFrameBuffer *gpu_context_active_framebuffer_get(GPUContext *ctx);
|
||||
|
||||
struct GPUMatrixState *gpu_context_active_matrix_state_get(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -28,7 +28,7 @@
|
||||
#include "GPU_element.h"
|
||||
#include "GPU_glew.h"
|
||||
|
||||
#include "gpu_context_private.h"
|
||||
#include "gpu_context_private.hh"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "GPU_shader.h"
|
||||
#include "GPU_texture.h"
|
||||
|
||||
#include "gpu_context_private.h"
|
||||
#include "gpu_context_private.hh"
|
||||
#include "gpu_private.h"
|
||||
|
||||
typedef enum {
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "GPU_texture.h"
|
||||
|
||||
#include "gpu_attr_binding_private.h"
|
||||
#include "gpu_context_private.h"
|
||||
#include "gpu_context_private.hh"
|
||||
#include "gpu_primitive_private.h"
|
||||
#include "gpu_shader_private.h"
|
||||
#include "gpu_vertex_format_private.h"
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "GPU_shader_interface.h"
|
||||
|
||||
#include "gpu_context_private.h"
|
||||
#include "gpu_context_private.hh"
|
||||
#include "gpu_matrix_private.h"
|
||||
|
||||
#define SUPPRESS_GENERIC_MATRIX_API
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "GPU_shader_interface.h"
|
||||
|
||||
#include "gpu_batch_private.h"
|
||||
#include "gpu_context_private.h"
|
||||
#include "gpu_context_private.hh"
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
#include "GPU_platform.h"
|
||||
#include "GPU_texture.h"
|
||||
|
||||
#include "gpu_context_private.h"
|
||||
#include "gpu_context_private.hh"
|
||||
|
||||
#define WARN_NOT_BOUND(_tex) \
|
||||
{ \
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "BLI_blenlib.h"
|
||||
#include "BLI_math_base.h"
|
||||
|
||||
#include "gpu_context_private.h"
|
||||
#include "gpu_context_private.hh"
|
||||
#include "gpu_node_graph.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "GPU_vertex_buffer.h"
|
||||
|
||||
#include "gpu_context_private.h"
|
||||
#include "gpu_context_private.hh"
|
||||
#include "gpu_vertex_format_private.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#include "GHOST_C-api.h"
|
||||
|
||||
#include "gpu_context_private.h"
|
||||
#include "gpu_context_private.hh"
|
||||
|
||||
#include "gl_backend.hh" /* TODO remove */
|
||||
#include "gl_context.hh"
|
||||
|
||||
@@ -23,10 +23,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "gpu_context_private.h"
|
||||
#include "gpu_context_private.hh"
|
||||
|
||||
#include "BLI_vector.hh"
|
||||
#include "BLI_set.hh"
|
||||
#include "BLI_vector.hh"
|
||||
|
||||
#include "glew-mx.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user