Gawain: move convert_prim_type_to_gl to private API

This commit is contained in:
Mike Erwin 2017-05-26 11:23:23 -04:00
parent cd8a8a3d1f
commit 620516965b
5 changed files with 17 additions and 2 deletions

@ -38,5 +38,3 @@ typedef enum {
PrimitiveClass prim_class_of_type(PrimitiveType);
bool prim_type_belongs_to_class(PrimitiveType, PrimitiveClass);
GLenum convert_prim_type_to_gl(PrimitiveType);

@ -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 "buffer_id.h"
#include "primitive_private.h"
#include <stdlib.h>
// necessary functions from matrix API

@ -14,6 +14,7 @@
#include "attrib_binding.h"
#include "attrib_binding_private.h"
#include "vertex_format_private.h"
#include "primitive_private.h"
#include <string.h>
// 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/.
#include "primitive.h"
#include "primitive_private.h"
PrimitiveClass prim_class_of_type(PrimitiveType prim_type)
{