[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-kimageshop
Subject: Re: 3D Brush and default model for every paintop
From: Cyrille Berger <cberger () cberger ! net>
Date: 2009-08-14 9:06:56
Message-ID: 200908141106.58417.cberger () cberger ! net
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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
[Attachment #5 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" \
content="1" /><style type="text/css">p, li { white-space: pre-wrap; \
}</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; \
font-weight:400; font-style:normal;">On Thursday 13 August 2009, LukasT.dev@gmail.com \
wrote:<br> > KisModel is class which parses obj file and store it in display \
list.<br> > It should be compiled only when HAVE_OPENGL is defined (this is not \
solved<br> > yet, how do I need to edit CMakeFile.txt in libpaintop?)<br>
Something like:<br>
if( HAVE_OPENGL )<br>
set( SRCS_MODEL<br>
KisModel.cpp<br>
)<br>
endif( HAVE_OPENGL )<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>set( WHATEVER_SRCS<br> Some.cpp<br>
${SRCS_MODEL}<br>
)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p><p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><br></p>> 2.solution:<br> > Paintop \
settings object will return QString with path to model.<br> > Then \
kis_tool_freehand which is in krita/ui/tool/ needs to see KisModel.<br> > Freehand \
would load and parse the obj file. So the KisModel needs to go to<br> > image/ or \
somewhere where it is more visible.<br> or simply move KisModel to UI ? (after all \
it's a UI related class).<br> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><br></p>-- <br> Cyrille Berger</p></body></html>
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic