vbo: remove vbo_context.h and change includes to use vbo.h instead

Now vbo.h is the public interface to the VBO module.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
Brian Paul
2018-01-18 14:39:22 -07:00
parent aafb56a148
commit f4376a0c2b
18 changed files with 6 additions and 79 deletions

View File

@@ -393,7 +393,6 @@ VBO_FILES = \
vbo/vbo_attrib.h \
vbo/vbo_attrib_tmp.h \
vbo/vbo_context.c \
vbo/vbo_context.h \
vbo/vbo_exec_api.c \
vbo/vbo_exec_array.c \
vbo/vbo_exec.c \

View File

@@ -46,7 +46,7 @@
#include "main/stencil.h"
#include "main/state.h"
#include "vbo/vbo_context.h"
#include "vbo/vbo.h"
#include "drivers/common/driverfuncs.h"
#include "drivers/common/meta.h"

View File

@@ -35,7 +35,7 @@
#include "main/transformfeedback.h"
#include "main/framebuffer.h"
#include "tnl/tnl.h"
#include "vbo/vbo_context.h"
#include "vbo/vbo.h"
#include "swrast/swrast.h"
#include "swrast_setup/swrast_setup.h"
#include "drivers/common/meta.h"

View File

@@ -27,7 +27,7 @@
#ifndef __NOUVEAU_RENDER_H__
#define __NOUVEAU_RENDER_H__
#include "vbo/vbo_context.h"
#include "vbo/vbo.h"
#include "nouveau_array.h"
typedef void (*dispatch_t)(struct gl_context *, unsigned int, int, unsigned int);

View File

@@ -51,7 +51,7 @@
#include "texobj.h"
#include "texstate.h"
#include "varray.h"
#include "vbo/vbo_context.h"
#include "vbo/vbo.h"
#include "viewport.h"
#include "blend.h"

View File

@@ -34,7 +34,7 @@
#include "eval.h"
#include "dlist.h"
#include "main/dispatch.h"
#include "vbo/vbo_context.h"
#include "vbo/vbo.h"
/**

View File

@@ -327,7 +327,6 @@ files_libmesa_common = files(
'vbo/vbo_attrib.h',
'vbo/vbo_attrib_tmp.h',
'vbo/vbo_context.c',
'vbo/vbo_context.h',
'vbo/vbo_exec_api.c',
'vbo/vbo_exec_array.c',
'vbo/vbo_exec.c',

View File

@@ -23,8 +23,7 @@
*/
/**
* \file vbo_context.h
* \brief VBO builder module datatypes and definitions.
* \brief Public interface to the VBO module
* \author Keith Whitwell
*/

View File

@@ -1,61 +0,0 @@
/*
* mesa 3-D graphics library
*
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
/**
* \file vbo_context.h
* \brief VBO builder module datatypes and definitions.
* \author Keith Whitwell
*/
/**
* \mainpage The VBO builder module
*
* This module hooks into the GL dispatch table and catches all vertex
* building and drawing commands, such as glVertex3f, glBegin and
* glDrawArrays. The module stores all incoming vertex data as arrays
* in GL vertex buffer objects (VBOs), and translates all drawing
* commands into calls to a driver supplied DrawPrimitives() callback.
*
* The module captures both immediate mode and display list drawing,
* and manages the allocation, reference counting and deallocation of
* vertex buffer objects itself.
*
* The DrawPrimitives() callback can be either implemented by the
* driver itself or hooked to the tnl module's _tnl_draw_primitives()
* function for hardware without tnl capablilties or during fallbacks.
*/
#ifndef _VBO_CONTEXT_H
#define _VBO_CONTEXT_H
#include "vbo.h"
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View File

@@ -44,7 +44,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "main/dispatch.h"
#include "util/bitscan.h"
#include "vbo_context.h"
#include "vbo_noop.h"
#include "vbo_private.h"

View File

@@ -39,7 +39,6 @@
#include "main/macros.h"
#include "main/transformfeedback.h"
#include "vbo_context.h"
#include "vbo_private.h"

View File

@@ -34,7 +34,6 @@
#include "main/state.h"
#include "main/vtxfmt.h"
#include "vbo_context.h"
#include "vbo_noop.h"
#include "vbo_private.h"

View File

@@ -34,7 +34,6 @@
#include "main/varray.h"
#include "vbo.h"
#include "vbo_context.h"
#include "vbo_private.h"

View File

@@ -32,7 +32,6 @@
#define VBO_PRIVATE_H
#include "vbo/vbo_context.h"
#include "vbo/vbo_attrib.h"
#include "vbo/vbo_exec.h"
#include "vbo/vbo_save.h"

View File

@@ -30,7 +30,6 @@
#include "main/bufferobj.h"
#include "main/imports.h"
#include "vbo_context.h"
#include "vbo_private.h"

View File

@@ -81,7 +81,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "main/state.h"
#include "util/bitscan.h"
#include "vbo_context.h"
#include "vbo_noop.h"
#include "vbo_private.h"

View File

@@ -36,7 +36,6 @@
#include "main/state.h"
#include "util/bitscan.h"
#include "vbo_context.h"
#include "vbo_private.h"

View File

@@ -23,7 +23,6 @@
*/
/**
* \file vbo_context.h
* \brief VBO builder module datatypes and definitions.
* \author Keith Whitwell
*/