move Gawain library to intern
authorMike Erwin <significant.bit@gmail.com>
Fri, 17 Mar 2017 03:32:35 +0000 (23:32 -0400)
committerMike Erwin <significant.bit@gmail.com>
Fri, 17 Mar 2017 03:32:35 +0000 (23:32 -0400)
commit4452bea2f170ec7fe48c223c8c499f1eb9b5356c
tree28dcc9ac042fcce5c77f3c60b4ce8af8677fa4a8
parentb4e8dc8c82dfcae60f33e39684272867745a8af2
move Gawain library to intern

Before now it lived in source/blender/gpu for convenience. Only a few files in the gpu module use Gawain directly.

Tested on Mac, time to push and test on Windows.

Todo: some CMake magic to make it easy to
#include "gawain/some_header.h"
from any C or H file. Main problem here is the many editors that include GPU_immediate.h which includes Gawain's immediate.h -- is there a way to avoid changing every editor's CMakeLists?
27 files changed:
build_files/cmake/macros.cmake
intern/CMakeLists.txt
intern/gawain/CMakeLists.txt [new file with mode: 0644]
intern/gawain/gawain/attrib_binding.h [moved from source/blender/gpu/gawain/attrib_binding.h with 100% similarity]
intern/gawain/gawain/batch.h [moved from source/blender/gpu/gawain/batch.h with 100% similarity]
intern/gawain/gawain/buffer_id.h [moved from source/blender/gpu/gawain/buffer_id.h with 100% similarity]
intern/gawain/gawain/common.h [moved from source/blender/gpu/gawain/common.h with 100% similarity]
intern/gawain/gawain/element.h [moved from source/blender/gpu/gawain/element.h with 100% similarity]
intern/gawain/gawain/imm_util.h [moved from source/blender/gpu/gawain/imm_util.h with 100% similarity]
intern/gawain/gawain/immediate.h [moved from source/blender/gpu/gawain/immediate.h with 100% similarity]
intern/gawain/gawain/primitive.h [moved from source/blender/gpu/gawain/primitive.h with 100% similarity]
intern/gawain/gawain/shader_interface.h [moved from source/blender/gpu/gawain/shader_interface.h with 100% similarity]
intern/gawain/gawain/vertex_buffer.h [moved from source/blender/gpu/gawain/vertex_buffer.h with 100% similarity]
intern/gawain/gawain/vertex_format.h [moved from source/blender/gpu/gawain/vertex_format.h with 100% similarity]
intern/gawain/src/attrib_binding.c [moved from source/blender/gpu/gawain/attrib_binding.c with 100% similarity]
intern/gawain/src/batch.c [moved from source/blender/gpu/gawain/batch.c with 100% similarity]
intern/gawain/src/buffer_id.cpp [moved from source/blender/gpu/gawain/buffer_id.cpp with 100% similarity]
intern/gawain/src/element.c [moved from source/blender/gpu/gawain/element.c with 100% similarity]
intern/gawain/src/imm_util.c [moved from source/blender/gpu/gawain/imm_util.c with 100% similarity]
intern/gawain/src/immediate.c [moved from source/blender/gpu/gawain/immediate.c with 100% similarity]
intern/gawain/src/primitive.c [moved from source/blender/gpu/gawain/primitive.c with 100% similarity]
intern/gawain/src/shader_interface.c [moved from source/blender/gpu/gawain/shader_interface.c with 100% similarity]
intern/gawain/src/vertex_buffer.c [moved from source/blender/gpu/gawain/vertex_buffer.c with 100% similarity]
intern/gawain/src/vertex_format.c [moved from source/blender/gpu/gawain/vertex_format.c with 100% similarity]
source/blender/gpu/CMakeLists.txt
source/blender/gpu/GPU_batch.h
source/blender/gpu/GPU_immediate.h