<!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>
&gt; KisModel is class which parses obj file and store it in display list.<br>
&gt; It should be compiled only when HAVE_OPENGL is defined (this is not solved<br>
&gt; 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>&gt; 2.solution:<br>
&gt; Paintop settings object will return QString with path to model.<br>
&gt; Then kis_tool_freehand which is in krita/ui/tool/ needs to see KisModel.<br>
&gt; Freehand would load and parse the obj file. So the KisModel needs to go to<br>
&gt; 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>