From kde-kimageshop Fri Aug 14 09:06:56 2009 From: Cyrille Berger Date: Fri, 14 Aug 2009 09:06:56 +0000 To: kde-kimageshop Subject: Re: 3D Brush and default model for every paintop Message-Id: <200908141106.58417.cberger () cberger ! net> X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=125024086018361 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1869417941==" --===============1869417941== Content-Type: multipart/alternative; boundary="Boundary-00=_ykShKjNTveRQabX" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-00=_ykShKjNTveRQabX Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit On Thursday 13 August 2009, LukasT.dev@gmail.com wrote: > KisModel is class which parses obj file and store it in display list. > It should be compiled only when HAVE_OPENGL is defined (this is not solved > yet, how do I need to edit CMakeFile.txt in libpaintop?) Something like: if( HAVE_OPENGL ) set( SRCS_MODEL KisModel.cpp ) endif( HAVE_OPENGL ) set( WHATEVER_SRCS Some.cpp ${SRCS_MODEL} ) > 2.solution: > Paintop settings object will return QString with path to model. > Then kis_tool_freehand which is in krita/ui/tool/ needs to see KisModel. > Freehand would load and parse the obj file. So the KisModel needs to go to > image/ or somewhere where it is more visible. or simply move KisModel to UI ? (after all it's a UI related class). -- Cyrille Berger --Boundary-00=_ykShKjNTveRQabX Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit On Thursday 13 August 2009, LukasT.dev@gmail.com wrote:
> KisModel is class which parses obj file and store it in display list.
> It should be compiled only when HAVE_OPENGL is defined (this is not solved
> yet, how do I need to edit CMakeFile.txt in libpaintop?)
Something like:
if( HAVE_OPENGL )
set( SRCS_MODEL
KisModel.cpp
)
endif( HAVE_OPENGL )


set( WHATEVER_SRCS
Some.cpp
${SRCS_MODEL}
)



> 2.solution:
> Paintop settings object will return QString with path to model.
> Then kis_tool_freehand which is in krita/ui/tool/ needs to see KisModel.
> Freehand would load and parse the obj file. So the KisModel needs to go to
> image/ or somewhere where it is more visible.
or simply move KisModel to UI ? (after all it's a UI related class).


--
Cyrille Berger

--Boundary-00=_ykShKjNTveRQabX-- --===============1869417941== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kimageshop mailing list kimageshop@kde.org https://mail.kde.org/mailman/listinfo/kimageshop --===============1869417941==--