(請原諒我的簡寫,因爲這是從內存中)我有類似代碼: bool myclass::handle(event ea){
switch (ea.getEventType()){
case(osgGA::KEYDOWN):
switch (ea.getkey())
{
case (osgGA::KEY_Lshift):
down = t
我有一些麻煩與Visual Studio安裝OpenSceneGraph的2015年 我跟這個老教程:How to build OpenSceneGraph from source and third party dependencies?,並在某些時候 這裏失敗是我到目前爲止已經完成: 下載OSG 3.4從這個鏈接:https://github.com/openscenegraph/OpenSc
我正在將應用程序從Windows移至iOS。然後我需要在OpenGL ES中轉換「OpenGL」。在原始應用程序中,我使用了glPush/PopAttrib指令,但在OpenGL ES中不存在。有些人在這裏討論替代方案:http://qt.developpez.com/doc/4.7/opengl-hellogl-es/但是他們使用glMatrixMode,它只能在OpenGL ES 1.1(不是