qbsp: add exportobj.hh header
This commit is contained in:
parent
87ae7d63fa
commit
a950d2fcb7
|
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
Copyright (C) 1996-1997 Id Software, Inc.
|
||||
Copyright (C) 1997 Greg Lewis
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
See file, 'COPYING', for details.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
struct face_t;
|
||||
struct bspbrush_t;
|
||||
struct node_t;
|
||||
|
||||
void ExportObj_Faces(const std::string &filesuffix, const std::vector<const face_t *> &faces);
|
||||
void ExportObj_Brushes(const std::string &filesuffix, const std::vector<const bspbrush_t *> &brushes);
|
||||
void ExportObj_Nodes(const std::string &filesuffix, const node_t *nodes);
|
||||
void ExportObj_Marksurfaces(const std::string &filesuffix, const node_t *nodes);
|
||||
|
|
@ -332,11 +332,6 @@ struct bspxbrushes_s
|
|||
void BSPX_Brushes_Finalize(struct bspxbrushes_s *ctx);
|
||||
void BSPX_Brushes_Init(struct bspxbrushes_s *ctx);
|
||||
|
||||
void ExportObj_Faces(const std::string &filesuffix, const std::vector<const face_t *> &faces);
|
||||
void ExportObj_Brushes(const std::string &filesuffix, const std::vector<const bspbrush_t *> &brushes);
|
||||
void ExportObj_Nodes(const std::string &filesuffix, const node_t *nodes);
|
||||
void ExportObj_Marksurfaces(const std::string &filesuffix, const node_t *nodes);
|
||||
|
||||
void WriteBspBrushMap(std::string_view filename_suffix, const bspbrush_t::container &list);
|
||||
|
||||
bool IsValidTextureProjection(const qvec3f &faceNormal, const qvec3f &s_vec, const qvec3f &t_vec);
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ set(QBSP_INCLUDES
|
|||
${CMAKE_SOURCE_DIR}/include/qbsp/qbsp.hh
|
||||
${CMAKE_SOURCE_DIR}/include/qbsp/brush.hh
|
||||
${CMAKE_SOURCE_DIR}/include/qbsp/csg.hh
|
||||
${CMAKE_SOURCE_DIR}/include/qbsp/exportobj.hh
|
||||
${CMAKE_SOURCE_DIR}/include/qbsp/map.hh
|
||||
${CMAKE_SOURCE_DIR}/include/qbsp/winding.hh
|
||||
${CMAKE_SOURCE_DIR}/include/qbsp/merge.hh
|
||||
|
|
|
|||
|
|
@ -18,8 +18,9 @@
|
|||
See file, 'COPYING', for details.
|
||||
*/
|
||||
|
||||
#include <qbsp/qbsp.hh>
|
||||
#include <qbsp/exportobj.hh>
|
||||
|
||||
#include <qbsp/qbsp.hh>
|
||||
#include <common/log.hh>
|
||||
#include <qbsp/brush.hh>
|
||||
#include <qbsp/map.hh>
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
|
||||
#include <qbsp/brush.hh>
|
||||
#include <qbsp/csg.hh>
|
||||
#include <qbsp/exportobj.hh>
|
||||
#include <qbsp/map.hh>
|
||||
#include <qbsp/merge.hh>
|
||||
#include <qbsp/portals.hh>
|
||||
|
|
|
|||
Loading…
Reference in New Issue