Cycles: Header cleanup in BVH: move self header to be the first one

This makes us more sure that header files are more self-sufficient.
This commit is contained in:
Sergey Sharybin
2017-04-13 11:20:33 +02:00
parent 0097f9b298
commit f90a243d9c
13 changed files with 18 additions and 18 deletions

View File

@@ -84,5 +84,4 @@ protected:
CCL_NAMESPACE_END
#endif /* __BVH_H__ */
#endif /* __BVH4_H__ */

View File

@@ -17,10 +17,10 @@
//#define __KERNEL_SSE__
#include <stdlib.h>
#include "bvh/bvh_binning.h"
#include <stdlib.h>
#include "util/util_algorithm.h"
#include "util/util_boundbox.h"
#include "util/util_types.h"

View File

@@ -111,5 +111,4 @@ protected:
CCL_NAMESPACE_END
#endif
#endif /* __BVH_BINNING_H__ */

View File

@@ -15,8 +15,9 @@
* limitations under the License.
*/
#include "bvh/bvh_binning.h"
#include "bvh/bvh_build.h"
#include "bvh/bvh_binning.h"
#include "bvh/bvh_node.h"
#include "bvh/bvh_params.h"
#include "bvh_split.h"

View File

@@ -20,17 +20,17 @@
#include <float.h>
#include "bvh/bvh.h"
#include "bvh/bvh_binning.h"
#include "bvh/bvh_params.h"
#include "bvh/bvh_unaligned.h"
#include "util/util_boundbox.h"
#include "util/util_task.h"
#include "util/util_vector.h"
CCL_NAMESPACE_BEGIN
class Boundbox;
class BVHBuildTask;
class BVHNode;
class BVHSpatialSplitBuildTask;
class BVHParams;
class InnerNode;

View File

@@ -15,9 +15,10 @@
* limitations under the License.
*/
#include "bvh/bvh_node.h"
#include "bvh/bvh.h"
#include "bvh/bvh_build.h"
#include "bvh/bvh_node.h"
#include "util/util_debug.h"
#include "util/util_vector.h"

View File

@@ -19,7 +19,6 @@
#define __BVH_NODE_H__
#include "util/util_boundbox.h"
#include "util/util_debug.h"
#include "util/util_types.h"
CCL_NAMESPACE_BEGIN

View File

@@ -246,4 +246,3 @@ struct BVHSpatialStorage {
CCL_NAMESPACE_END
#endif /* __BVH_PARAMS_H__ */

View File

@@ -15,9 +15,10 @@
* limitations under the License.
*/
#include "bvh/bvh_build.h"
#include "bvh/bvh_sort.h"
#include "bvh/bvh_build.h"
#include "util/util_algorithm.h"
#include "util/util_debug.h"
#include "util/util_task.h"

View File

@@ -18,8 +18,11 @@
#ifndef __BVH_SORT_H__
#define __BVH_SORT_H__
#include <cstddef>
CCL_NAMESPACE_BEGIN
class BVHReference;
class BVHUnaligned;
struct Transform;
@@ -33,4 +36,3 @@ void bvh_reference_sort(int start,
CCL_NAMESPACE_END
#endif /* __BVH_SORT_H__ */

View File

@@ -15,8 +15,9 @@
* limitations under the License.
*/
#include "bvh/bvh_build.h"
#include "bvh/bvh_split.h"
#include "bvh/bvh_build.h"
#include "bvh/bvh_sort.h"
#include "render/mesh.h"

View File

@@ -14,7 +14,6 @@
* limitations under the License.
*/
#include "bvh/bvh_unaligned.h"
#include "render/mesh.h"

View File

@@ -78,4 +78,3 @@ protected:
CCL_NAMESPACE_END
#endif /* __BVH_UNALIGNED_H__ */