Hi Robert,

2010/8/19 Robert Osfield <[email protected]>:
> Hi Rafam
>
> I have Android phone so am curious about how well you'll get on, I
> haven't actually attempted any port - way too many other tasks on my
> plate to tinker.

We have some projects that will make use of 3D in mobile systems, and
we are experimenting with Android as first platform. IPhone is also
interesting but distribution method of software is a little bit
complicated so we are testing first Android. I hope have some results
in a few weeks.

>
> On Wed, Aug 18, 2010 at 7:59 PM, Rafa Gaitan <[email protected]> wrote:
>> /Users/rgaitan/Projects/OSG/osg-trunk/src/osg/Texture.cpp: In member
>> function 'void osg::Texture::applyTexImage2D_load(osg::State&, GLenum,
>> const osg::Image*, GLsizei, GLsizei, GLsizei) const':
>> /Users/rgaitan/Projects/OSG/osg-trunk/src/osg/Texture.cpp:1600: error:
>> 'GL_RED' was not declared in this scope.
>>
>> I'm not sure how to achieve the change, maybe adding and #ifdef and
>> checking if GLES/GLES2 is active? The other changes I have are only to
>> allow ndk gcc compiler build correctly so they are minor changes, but
>> the change on Texture.cpp affects functionality and I'm not sure which
>> is the better way to achieve it. Once I have things working I will
>> post on osg-submission the changes ;)
>
> You could just add a
>
>   #ifndef GL_RED
>      #define GL_RED 0x1903
>   #endif
>
> To get the code to compile.  It won't do anything as the extension
> code paths won't be visited, this is the approach I've previously been
> using to minimize the number of code differences between platforms.

Ok, I will do that! Thank you!

Rafa.




-- 
Rafael Gaitán Linares
Instituto de Automática e Informática Industrial  http://www.ai2.upv.es
http://gvsig3d.blogspot.com
Ciudad Politécnica de la Innovación
Universidad Politécnica de Valencia
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to