forked from bartvdbraak/blender
31cc60e76b
This patch allows the game engine to keep running while performing things like PNG compression and disk I/O. As an example, my crowd simulation rasterizer saves a screenshot for every frame. This now takes up 13 msec per frame, which was 31 msec before this patch. Effectively, it allows the simulation to save every frame and still run at 60 FPS. Reviewers: lordloki, moguri, panzergame Reviewed By: moguri, panzergame Projects: #game_engine Differential Revision: https://developer.blender.org/D1507
90 lines
2.3 KiB
CMake
90 lines
2.3 KiB
CMake
# ***** BEGIN GPL LICENSE BLOCK *****
|
|
#
|
|
# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
#
|
|
# The Original Code is Copyright (C) 2006, Blender Foundation
|
|
# All rights reserved.
|
|
#
|
|
# The Original Code is: all of this file.
|
|
#
|
|
# Contributor(s): Jacques Beaurain.
|
|
#
|
|
# ***** END GPL LICENSE BLOCK *****
|
|
|
|
set(INC
|
|
.
|
|
../Expressions
|
|
../Ketsji
|
|
../SceneGraph
|
|
../../blender/makesdna
|
|
../../blender/blenlib
|
|
../../blender/blenkernel
|
|
../../blender/imbuf
|
|
../../../intern/container
|
|
../../../intern/glew-mx
|
|
../../../intern/guardedalloc
|
|
../../../intern/string
|
|
)
|
|
|
|
set(INC_SYS
|
|
../../../intern/moto/include
|
|
${GLEW_INCLUDE_PATH}
|
|
${PYTHON_INCLUDE_DIRS}
|
|
)
|
|
|
|
set(SRC
|
|
RAS_2DFilterManager.cpp
|
|
RAS_BucketManager.cpp
|
|
RAS_FramingManager.cpp
|
|
RAS_IPolygonMaterial.cpp
|
|
RAS_MaterialBucket.cpp
|
|
RAS_MeshObject.cpp
|
|
RAS_Polygon.cpp
|
|
RAS_TexVert.cpp
|
|
RAS_texmatrix.cpp
|
|
RAS_ICanvas.cpp
|
|
|
|
RAS_2DFilterManager.h
|
|
RAS_BucketManager.h
|
|
RAS_CameraData.h
|
|
RAS_Deformer.h
|
|
RAS_FramingManager.h
|
|
RAS_ICanvas.h
|
|
RAS_IPolygonMaterial.h
|
|
RAS_IRasterizer.h
|
|
RAS_ILightObject.h
|
|
RAS_MaterialBucket.h
|
|
RAS_MeshObject.h
|
|
RAS_ObjectColor.h
|
|
RAS_Polygon.h
|
|
RAS_Rect.h
|
|
RAS_TexMatrix.h
|
|
RAS_TexVert.h
|
|
RAS_OpenGLFilters/RAS_Blur2DFilter.h
|
|
RAS_OpenGLFilters/RAS_Dilation2DFilter.h
|
|
RAS_OpenGLFilters/RAS_Erosion2DFilter.h
|
|
RAS_OpenGLFilters/RAS_GrayScale2DFilter.h
|
|
RAS_OpenGLFilters/RAS_Invert2DFilter.h
|
|
RAS_OpenGLFilters/RAS_Laplacian2DFilter.h
|
|
RAS_OpenGLFilters/RAS_Prewitt2DFilter.h
|
|
RAS_OpenGLFilters/RAS_Sepia2DFilter.h
|
|
RAS_OpenGLFilters/RAS_Sharpen2DFilter.h
|
|
RAS_OpenGLFilters/RAS_Sobel2DFilter.h
|
|
)
|
|
|
|
add_definitions(${GL_DEFINITIONS})
|
|
|
|
blender_add_lib(ge_rasterizer "${SRC}" "${INC}" "${INC_SYS}")
|