HIDPI_GL_3D_CANVAS needs CAMERA so move it over
This commit is contained in:
parent
669f9d795f
commit
37479c4154
|
@ -23,7 +23,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../3d_rendering/camera.h"
|
#include <gal/3d/camera.h>
|
||||||
#include "board_adapter.h"
|
#include "board_adapter.h"
|
||||||
#include <board_design_settings.h>
|
#include <board_design_settings.h>
|
||||||
#include <board_stackup_manager/board_stackup.h>
|
#include <board_stackup_manager/board_stackup.h>
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include "../3d_rendering/raytracing/accelerators/container_2d.h"
|
#include "../3d_rendering/raytracing/accelerators/container_2d.h"
|
||||||
#include "../3d_rendering/raytracing/accelerators/container_3d.h"
|
#include "../3d_rendering/raytracing/accelerators/container_3d.h"
|
||||||
#include "../3d_rendering/raytracing/shapes3D/bbox_3d.h"
|
#include "../3d_rendering/raytracing/shapes3D/bbox_3d.h"
|
||||||
#include "../3d_rendering/camera.h"
|
#include <gal/3d/camera.h>
|
||||||
#include "../3d_enums.h"
|
#include "../3d_enums.h"
|
||||||
#include "../3d_cache/3d_cache.h"
|
#include "../3d_cache/3d_cache.h"
|
||||||
#include "../common_ogl/ogl_attr_list.h"
|
#include "../common_ogl/ogl_attr_list.h"
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#ifndef POST_SHADER_H
|
#ifndef POST_SHADER_H
|
||||||
#define POST_SHADER_H
|
#define POST_SHADER_H
|
||||||
|
|
||||||
#include "camera.h"
|
#include <gal/3d/camera.h>
|
||||||
|
|
||||||
class POST_SHADER
|
class POST_SHADER
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
#include "ray.h"
|
#include "ray.h"
|
||||||
#include "frustum.h"
|
#include "frustum.h"
|
||||||
#include "../camera.h"
|
#include <gal/3d/camera.h>
|
||||||
|
|
||||||
#define RAYPACKET_DIM (1 << 3)
|
#define RAYPACKET_DIM (1 << 3)
|
||||||
#define RAYPACKET_MASK (unsigned int) ( ( RAYPACKET_DIM - 1 ) )
|
#define RAYPACKET_MASK (unsigned int) ( ( RAYPACKET_DIM - 1 ) )
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#ifndef TRACK_BALL_H
|
#ifndef TRACK_BALL_H
|
||||||
#define TRACK_BALL_H
|
#define TRACK_BALL_H
|
||||||
|
|
||||||
#include "camera.h"
|
#include <gal/3d/camera.h>
|
||||||
|
|
||||||
|
|
||||||
class TRACK_BALL : public CAMERA
|
class TRACK_BALL : public CAMERA
|
||||||
|
|
|
@ -71,7 +71,6 @@ set(3D-VIEWER_SRCS
|
||||||
${DIR_RAY_3D}/triangle_3d.cpp
|
${DIR_RAY_3D}/triangle_3d.cpp
|
||||||
3d_rendering/buffers_debug.cpp
|
3d_rendering/buffers_debug.cpp
|
||||||
3d_rendering/render_3d_base.cpp
|
3d_rendering/render_3d_base.cpp
|
||||||
3d_rendering/camera.cpp
|
|
||||||
3d_rendering/color_rgb.cpp
|
3d_rendering/color_rgb.cpp
|
||||||
3d_rendering/image.cpp
|
3d_rendering/image.cpp
|
||||||
3d_rendering/post_shader.cpp
|
3d_rendering/post_shader.cpp
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
* @file camera.cpp
|
* @file camera.cpp
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "camera.h"
|
#include <gal/3d/camera.h>
|
||||||
#include <wx/log.h>
|
#include <wx/log.h>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
|
@ -14,6 +14,8 @@ set( GAL_SRCS
|
||||||
../view/view_overlay.cpp
|
../view/view_overlay.cpp
|
||||||
../view/zoom_controller.cpp
|
../view/zoom_controller.cpp
|
||||||
|
|
||||||
|
3d/camera.cpp
|
||||||
|
|
||||||
# OpenGL GAL
|
# OpenGL GAL
|
||||||
opengl/opengl_gal.cpp
|
opengl/opengl_gal.cpp
|
||||||
opengl/gl_resources.cpp
|
opengl/gl_resources.cpp
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
/*
|
||||||
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2023 KiCad Developers, see AUTHORS.txt for contributors.
|
||||||
|
*
|
||||||
|
* 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 3 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, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <import_export.h>
|
||||||
|
|
||||||
|
#ifndef SWIG
|
||||||
|
#if defined( KIGAL_DLL )
|
||||||
|
#define GAL_API APIEXPORT
|
||||||
|
#else
|
||||||
|
#define GAL_API APIIMPORT
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#define GAL_API
|
||||||
|
#endif
|
|
@ -26,7 +26,7 @@
|
||||||
#define HIDPI_GL_3D_CANVAS_H
|
#define HIDPI_GL_3D_CANVAS_H
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include "3d_rendering/camera.h"
|
#include <gal/3d/camera.h>
|
||||||
#include <gal/hidpi_gl_canvas.h>
|
#include <gal/hidpi_gl_canvas.h>
|
||||||
#include <wx/image.h>
|
#include <wx/image.h>
|
||||||
#include <wx/timer.h>
|
#include <wx/timer.h>
|
||||||
|
|
Loading…
Reference in New Issue