forked from bartvdbraak/blender
Gawain: move convert_prim_type_to_gl to private API
This commit is contained in:
parent
cd8a8a3d1f
commit
620516965b
@ -38,5 +38,3 @@ typedef enum {
|
|||||||
|
|
||||||
PrimitiveClass prim_class_of_type(PrimitiveType);
|
PrimitiveClass prim_class_of_type(PrimitiveType);
|
||||||
bool prim_type_belongs_to_class(PrimitiveType, PrimitiveClass);
|
bool prim_type_belongs_to_class(PrimitiveType, PrimitiveClass);
|
||||||
|
|
||||||
GLenum convert_prim_type_to_gl(PrimitiveType);
|
|
||||||
|
14
intern/gawain/gawain/primitive_private.h
Normal file
14
intern/gawain/gawain/primitive_private.h
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
// Gawain geometric primitives (private interface for use inside Gawain)
|
||||||
|
//
|
||||||
|
// This code is part of the Gawain library, with modifications
|
||||||
|
// specific to integration with Blender.
|
||||||
|
//
|
||||||
|
// Copyright 2017 Mike Erwin
|
||||||
|
//
|
||||||
|
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of
|
||||||
|
// the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
GLenum convert_prim_type_to_gl(PrimitiveType);
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
#include "batch.h"
|
#include "batch.h"
|
||||||
#include "buffer_id.h"
|
#include "buffer_id.h"
|
||||||
|
#include "primitive_private.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
// necessary functions from matrix API
|
// necessary functions from matrix API
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
#include "attrib_binding.h"
|
#include "attrib_binding.h"
|
||||||
#include "attrib_binding_private.h"
|
#include "attrib_binding_private.h"
|
||||||
#include "vertex_format_private.h"
|
#include "vertex_format_private.h"
|
||||||
|
#include "primitive_private.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
// necessary functions from matrix API
|
// necessary functions from matrix API
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
// the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
// the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
#include "primitive.h"
|
#include "primitive.h"
|
||||||
|
#include "primitive_private.h"
|
||||||
|
|
||||||
PrimitiveClass prim_class_of_type(PrimitiveType prim_type)
|
PrimitiveClass prim_class_of_type(PrimitiveType prim_type)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user