MyGUI ported to Ogre 2.1! =)

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Lanboost
Gnoblar
Posts: 4
Joined: Sun Jun 08, 2014 2:02 pm

Re: MyGUI ported to Ogre 2.1! =)

Post by Lanboost »

1. On first, precombiled def uses ogre 1.X which sadly make it mean nothing, the question was 2.1 specific.

2. I have "solved" my issue by simple not having a RTT cause it wastes to much time trying to get it to work. But the issue I was having wasnt really about AA which the above posts seems to be about, if I had a 32,32 pixel cursor in a layer above my gui for example (both gui and cursor being rendered by mygui) it works when I render to a WindowRT, but when I RTT instead of blending the cursor with the gui, it simple replaces the entire 32,32 area with pure alpha pixels.

So both questions remain unresolved, but me personally is no longer putting effort into solving them as I decided to move away from RTT fully instead.
User avatar
nevarim
Gnoll
Posts: 675
Joined: Mon Jul 05, 2010 6:16 pm
Location: Pavia Italy
x 4
Contact:

Re: MyGUI ported to Ogre 2.1! =)

Post by nevarim »

hi all

i'm trying to compile with ogre 2.x but i have rhis error

Code: Select all

1>------ Inizio compilazione: Progetto: MyGUI.OgrePlatform, Configurazione: Debug Win32 ------
1>MyGUI_OgreDataManager.cpp
1>d:\code\source\mygui2\myguiengine\include\MyGUI_Exception.h(19): warning C4275: class di interfaccia non dll 'std::exception' utilizzato come base per class di interfaccia dll 'MyGUI::Exception'
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\vcruntime_exception.h(43): note: vedere la dichiarazione di 'std::exception'
1>d:\code\source\mygui2\myguiengine\include\MyGUI_Exception.h(17): note: vedere la dichiarazione di 'MyGUI::Exception'
1>d:\code\source\mygui2\myguiengine\include\MyGUI_Singleton.h(34): warning C4297: 'MyGUI::Singleton<MyGUI::DataManager>::~Singleton': la funzione genera un'eccezione benché ciò non fosse previsto
1>d:\code\source\mygui2\myguiengine\include\MyGUI_Singleton.h(34): note: il distruttore o il deallocatore contiene una specifica di eccezione non generata (possibilmente implicita)
1>d:\code\source\mygui2\myguiengine\include\MyGUI_Singleton.h(33): note: durante la compilazione della funzione membro '<Sconosciuto>' di modello <Sconosciuto>
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreDataManager.cpp(22): note: vedere il riferimento all'istanza '<Sconosciuto>' della funzione <Sconosciuto> di cui è in corso la compilazione
1>D:\code\source\mygui2\MyGUIEngine\include\MyGUI_DataManager.h(20): note: vedere il riferimento all'istanza '<Sconosciuto>' di modello <Sconosciuto> di cui è in corso la compilazione
1>MyGUI_OgreDataStream.cpp
1>d:\code\source\mygui2\myguiengine\include\MyGUI_Exception.h(19): warning C4275: class di interfaccia non dll 'std::exception' utilizzato come base per class di interfaccia dll 'MyGUI::Exception'
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\vcruntime_exception.h(43): note: vedere la dichiarazione di 'std::exception'
1>d:\code\source\mygui2\myguiengine\include\MyGUI_Exception.h(17): note: vedere la dichiarazione di 'MyGUI::Exception'
1>MyGUI_OgreRTTexture.cpp
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(123): error C2039: 'UVWAddressingMode': non è un membro di 'Ogre::TextureUnitState'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreTextureUnitState.h(61): note: vedere la dichiarazione di 'Ogre::TextureUnitState'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(123): error C3646: 'mTextureAddressMode': identificatore di override sconosciuto
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(123): error C4430: identificatore di tipo mancante, verrà utilizzato int. Nota: default-int non è più supportato in C++
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRTTexture.cpp(57): error C2664: 'Ogre::Viewport *Ogre::RenderTarget::addViewport(float,float,float,float)': impossibile convertire l'argomento 1 da 'nullptr' a 'float'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRTTexture.cpp(57): note: nullptr può essere convertito solo in tipi di handle o puntatori
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRTTexture.cpp(58): error C2039: 'setClearEveryFrame': non è un membro di 'Ogre::Viewport'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreViewport.h(67): note: vedere la dichiarazione di 'Ogre::Viewport'
1>MyGUI_OgreRenderManager.cpp
1>d:\code\source\mygui2\myguiengine\include\MyGUI_Exception.h(19): warning C4275: class di interfaccia non dll 'std::exception' utilizzato come base per class di interfaccia dll 'MyGUI::Exception'
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\vcruntime_exception.h(43): note: vedere la dichiarazione di 'std::exception'
1>d:\code\source\mygui2\myguiengine\include\MyGUI_Exception.h(17): note: vedere la dichiarazione di 'MyGUI::Exception'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(123): error C2039: 'UVWAddressingMode': non è un membro di 'Ogre::TextureUnitState'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreTextureUnitState.h(61): note: vedere la dichiarazione di 'Ogre::TextureUnitState'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(123): error C3646: 'mTextureAddressMode': identificatore di override sconosciuto
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(123): error C4430: identificatore di tipo mancante, verrà utilizzato int. Nota: default-int non è più supportato in C++
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(39): error C2039: 'RenderOperation': non è un membro di 'Ogre'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreShadowCameraSetupFocused.h(38): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(39): error C2143: errore di sintassi: ';' mancante prima di '*'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(39): error C4430: identificatore di tipo mancante, verrà utilizzato int. Nota: default-int non è più supportato in C++
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(40): error C2334: token imprevisti prima di '{'. Il corpo apparente della funzione verrà ignorato.
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(53): error C2039: 'RenderOperation': non è un membro di 'Ogre'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreShadowCameraSetupFocused.h(38): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(53): error C3646: 'mRenderOperation': identificatore di override sconosciuto
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(53): error C4430: identificatore di tipo mancante, verrà utilizzato int. Nota: default-int non è più supportato in C++
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(54): error C2039: 'HardwareVertexBufferSharedPtr': non è un membro di 'Ogre'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreShadowCameraSetupFocused.h(38): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(54): error C3646: 'mVertexBuffer': identificatore di override sconosciuto
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(54): error C4430: identificatore di tipo mancante, verrà utilizzato int. Nota: default-int non è più supportato in C++
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(55): error C2065: 'mTextureAddressMode': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(55): error C2228: l'elemento a sinistra di '.u' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(55): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(55): error C2039: 'TAM_CLAMP': non è un membro di 'Ogre::TextureUnitState'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreTextureUnitState.h(61): note: vedere la dichiarazione di 'Ogre::TextureUnitState'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(55): error C2065: 'TAM_CLAMP': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(56): error C2065: 'mTextureAddressMode': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(56): error C2228: l'elemento a sinistra di '.v' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(56): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(56): error C2039: 'TAM_CLAMP': non è un membro di 'Ogre::TextureUnitState'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreTextureUnitState.h(61): note: vedere la dichiarazione di 'Ogre::TextureUnitState'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(56): error C2065: 'TAM_CLAMP': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(57): error C2065: 'mTextureAddressMode': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(57): error C2228: l'elemento a sinistra di '.w' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(57): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(57): error C2039: 'TAM_CLAMP': non è un membro di 'Ogre::TextureUnitState'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreTextureUnitState.h(61): note: vedere la dichiarazione di 'Ogre::TextureUnitState'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(57): error C2065: 'TAM_CLAMP': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(188): error C2039: 'RENDER_QUEUE_OVERLAY': non è un membro di 'Ogre'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreShadowCameraSetupFocused.h(38): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(188): error C2065: 'RENDER_QUEUE_OVERLAY': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(291): error C2664: 'void Ogre::RenderSystem::_setTexture(::size_t,bool,const Ogre::String &)': impossibile convertire l'argomento 3 da 'Ogre::TexturePtr' a 'Ogre::Texture *'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(291): note: Nessun operatore di conversione definito dall'utente è disponibile o è impossibile chiamare l'operatore
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(292): error C2039: '_setTextureUnitFiltering': non è un membro di 'Ogre::RenderSystem'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreRenderSystem.h(98): note: vedere la dichiarazione di 'Ogre::RenderSystem'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(297): error C2039: 'RenderOperation': non è un membro di 'Ogre'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreShadowCameraSetupFocused.h(38): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(297): error C2065: 'RenderOperation': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(297): error C2065: 'operation': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(297): error C2039: 'getRenderOperation': non è un membro di 'MyGUI::OgreVertexBuffer'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(26): note: vedere la dichiarazione di 'MyGUI::OgreVertexBuffer'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(298): error C2065: 'operation': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(298): error C2227: l'elemento a sinistra di '->vertexData' deve puntare a un tipo classe, struttura, unione o generico
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(298): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(298): error C2227: l'elemento a sinistra di '->vertexCount' deve puntare a un tipo classe, struttura, unione o generico
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(300): error C2065: 'operation': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(319): error C2039: 'setLightingEnabled': non è un membro di 'Ogre::RenderSystem'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreRenderSystem.h(98): note: vedere la dichiarazione di 'Ogre::RenderSystem'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(320): error C2039: '_setDepthBufferParams': non è un membro di 'Ogre::RenderSystem'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreRenderSystem.h(98): note: vedere la dichiarazione di 'Ogre::RenderSystem'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(321): error C2039: '_setDepthBias': non è un membro di 'Ogre::RenderSystem'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreRenderSystem.h(98): note: vedere la dichiarazione di 'Ogre::RenderSystem'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(322): error C2039: '_setCullingMode': non è un membro di 'Ogre::RenderSystem'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreRenderSystem.h(98): note: vedere la dichiarazione di 'Ogre::RenderSystem'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(323): error C2039: '_setFog': non è un membro di 'Ogre::RenderSystem'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreRenderSystem.h(98): note: vedere la dichiarazione di 'Ogre::RenderSystem'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(324): error C2039: '_setColourBufferWriteEnabled': non è un membro di 'Ogre::RenderSystem'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreRenderSystem.h(98): note: vedere la dichiarazione di 'Ogre::RenderSystem'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(325): error C2039: 'unbindGpuProgram': non è un membro di 'Ogre::RenderSystem'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreRenderSystem.h(98): note: vedere la dichiarazione di 'Ogre::RenderSystem'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(326): error C2039: 'unbindGpuProgram': non è un membro di 'Ogre::RenderSystem'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreRenderSystem.h(98): note: vedere la dichiarazione di 'Ogre::RenderSystem'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(327): error C2039: 'setShadingType': non è un membro di 'Ogre::RenderSystem'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreRenderSystem.h(98): note: vedere la dichiarazione di 'Ogre::RenderSystem'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(332): error C2039: '_setTextureUnitFiltering': non è un membro di 'Ogre::RenderSystem'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreRenderSystem.h(98): note: vedere la dichiarazione di 'Ogre::RenderSystem'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(333): error C2039: '_setTextureAddressingMode': non è un membro di 'Ogre::RenderSystem'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreRenderSystem.h(98): note: vedere la dichiarazione di 'Ogre::RenderSystem'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(333): error C2065: 'mTextureAddressMode': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(338): error C2039: '_setAlphaRejectSettings': non è un membro di 'Ogre::RenderSystem'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreRenderSystem.h(98): note: vedere la dichiarazione di 'Ogre::RenderSystem'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(345): error C2039: '_setSceneBlending': non è un membro di 'Ogre::RenderSystem'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreRenderSystem.h(98): note: vedere la dichiarazione di 'Ogre::RenderSystem'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(349): error C2039: '_setPolygonMode': non è un membro di 'Ogre::RenderSystem'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreRenderSystem.h(98): note: vedere la dichiarazione di 'Ogre::RenderSystem'
1>MyGUI_OgreTexture.cpp
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreTexture.h(95): error C2079: 'MyGUI::OgreTexture::mTmpData' utilizza class 'Ogre::PixelBox' non definito
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(123): error C2039: 'UVWAddressingMode': non è un membro di 'Ogre::TextureUnitState'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreTextureUnitState.h(61): note: vedere la dichiarazione di 'Ogre::TextureUnitState'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(123): error C3646: 'mTextureAddressMode': identificatore di override sconosciuto
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(123): error C4430: identificatore di tipo mancante, verrà utilizzato int. Nota: default-int non è più supportato in C++
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(29): error C2228: l'elemento a sinistra di '.data' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(29): note: il tipo è 'int'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(60): error C2228: l'elemento a sinistra di '.data' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(60): note: il tipo è 'int'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(62): error C2228: l'elemento a sinistra di '.data' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(62): note: il tipo è 'int'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(63): error C2228: l'elemento a sinistra di '.data' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(63): note: il tipo è 'int'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(93): error C2039: 'HardwareBuffer': non è un membro di 'Ogre'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreShadowCameraSetupFocused.h(38): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(93): error C3083: 'HardwareBuffer': il simbolo a sinistra di '::' deve essere un tipo
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(93): error C2039: 'HBL_DISCARD': non è un membro di 'Ogre'
1>d:\code\compiled\ogre\sdk\include\ogre\OgreShadowCameraSetupFocused.h(38): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(93): error C2065: 'HBL_DISCARD': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(99): error C2228: l'elemento a sinistra di '.data' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(99): note: il tipo è 'int'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(101): error C2228: l'elemento a sinistra di '.data' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(101): note: il tipo è 'int'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(102): error C2228: l'elemento a sinistra di '.data' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(102): note: il tipo è 'int'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(105): error C2440: '=': impossibile convertire da 'Ogre::PixelBox' a 'int'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(105): note: Nessun operatore di conversione definito dall'utente è disponibile o è impossibile chiamare l'operatore
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(106): error C2228: l'elemento a sinistra di '.data' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(106): note: il tipo è 'int'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(108): error C2664: 'void Ogre::v1::HardwarePixelBuffer::blitToMemory(const Ogre::PixelBox &)': impossibile convertire l'argomento 1 da 'int' a 'const Ogre::PixelBox &'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(108): note: Motivo: impossibile convertire da 'int' a 'const Ogre::PixelBox'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(108): note: Nessun costruttore ha potuto accettare il tipo di origine o la risoluzione dell'overload del costruttore è risultata ambigua
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(110): error C2228: l'elemento a sinistra di '.data' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(110): note: il tipo è 'int'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(119): error C2228: l'elemento a sinistra di '.data' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(119): note: il tipo è 'int'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(121): error C2228: l'elemento a sinistra di '.data' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(121): note: il tipo è 'int'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(122): error C2228: l'elemento a sinistra di '.data' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(122): note: il tipo è 'int'
1>MyGUI_OgreVertexBuffer.cpp
1>d:\code\source\mygui2\myguiengine\include\MyGUI_Exception.h(19): warning C4275: class di interfaccia non dll 'std::exception' utilizzato come base per class di interfaccia dll 'MyGUI::Exception'
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\vcruntime_exception.h(43): note: vedere la dichiarazione di 'std::exception'
1>d:\code\source\mygui2\myguiengine\include\MyGUI_Exception.h(17): note: vedere la dichiarazione di 'MyGUI::Exception'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(39): error C2039: 'RenderOperation': non è un membro di 'Ogre'
1>D:\code\compiled\ogre\sdk\include\OGRE\OgreTextureManager.h(39): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(39): error C2143: errore di sintassi: ';' mancante prima di '*'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(39): error C4430: identificatore di tipo mancante, verrà utilizzato int. Nota: default-int non è più supportato in C++
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(40): error C2334: token imprevisti prima di '{'. Il corpo apparente della funzione verrà ignorato.
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(53): error C2039: 'RenderOperation': non è un membro di 'Ogre'
1>D:\code\compiled\ogre\sdk\include\OGRE\OgreTextureManager.h(39): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(53): error C3646: 'mRenderOperation': identificatore di override sconosciuto
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(53): error C4430: identificatore di tipo mancante, verrà utilizzato int. Nota: default-int non è più supportato in C++
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(54): error C2039: 'HardwareVertexBufferSharedPtr': non è un membro di 'Ogre'
1>D:\code\compiled\ogre\sdk\include\OGRE\OgreTextureManager.h(39): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(54): error C3646: 'mVertexBuffer': identificatore di override sconosciuto
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(54): error C4430: identificatore di tipo mancante, verrà utilizzato int. Nota: default-int non è più supportato in C++
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(33): error C2065: 'mRenderOperation': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(33): error C2228: l'elemento a sinistra di '.vertexData' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(33): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(33): error C2039: 'VertexData': non è un membro di 'Ogre'
1>D:\code\compiled\ogre\sdk\include\OGRE\OgreTextureManager.h(39): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(33): error C2061: errore di sintassi: identificatore 'VertexData'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(34): error C2065: 'mRenderOperation': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(34): error C2228: l'elemento a sinistra di '.vertexData' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(34): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(34): error C2227: l'elemento a sinistra di '->vertexStart' deve puntare a un tipo classe, struttura, unione o generico
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(36): error C2039: 'VertexDeclaration': non è un membro di 'Ogre'
1>D:\code\compiled\ogre\sdk\include\OGRE\OgreTextureManager.h(39): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(36): error C2065: 'VertexDeclaration': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(36): error C2065: 'vd': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(36): error C2065: 'mRenderOperation': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(36): error C2228: l'elemento a sinistra di '.vertexData' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(36): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(36): error C2227: l'elemento a sinistra di '->vertexDeclaration' deve puntare a un tipo classe, struttura, unione o generico
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(37): error C2065: 'vd': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(37): error C2227: l'elemento a sinistra di '->addElement' deve puntare a un tipo classe, struttura, unione o generico
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(37): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(38): error C2065: 'vd': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(38): error C2227: l'elemento a sinistra di '->addElement' deve puntare a un tipo classe, struttura, unione o generico
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(38): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(38): error C2039: 'VertexElement': non è un membro di 'Ogre'
1>D:\code\compiled\ogre\sdk\include\OGRE\OgreTextureManager.h(39): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(38): error C3083: 'VertexElement': il simbolo a sinistra di '::' deve essere un tipo
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(38): error C2039: 'getTypeSize': non è un membro di 'Ogre'
1>D:\code\compiled\ogre\sdk\include\OGRE\OgreTextureManager.h(39): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(38): error C3861: 'getTypeSize': identificatore non trovato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(39): error C2065: 'vd': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(39): error C2227: l'elemento a sinistra di '->addElement' deve puntare a un tipo classe, struttura, unione o generico
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(39): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(39): error C2039: 'VertexElement': non è un membro di 'Ogre'
1>D:\code\compiled\ogre\sdk\include\OGRE\OgreTextureManager.h(39): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(39): error C3083: 'VertexElement': il simbolo a sinistra di '::' deve essere un tipo
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(39): error C2039: 'getTypeSize': non è un membro di 'Ogre'
1>D:\code\compiled\ogre\sdk\include\OGRE\OgreTextureManager.h(39): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(39): error C3861: 'getTypeSize': identificatore non trovato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(40): error C2039: 'VertexElement': non è un membro di 'Ogre'
1>D:\code\compiled\ogre\sdk\include\OGRE\OgreTextureManager.h(39): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(40): error C3083: 'VertexElement': il simbolo a sinistra di '::' deve essere un tipo
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(40): error C2039: 'getTypeSize': non è un membro di 'Ogre'
1>D:\code\compiled\ogre\sdk\include\OGRE\OgreTextureManager.h(39): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(40): error C3861: 'getTypeSize': identificatore non trovato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(44): error C2065: 'mVertexBuffer': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(44): error C2039: 'HardwareBufferManager': non è un membro di 'Ogre'
1>D:\code\compiled\ogre\sdk\include\OGRE\OgreTextureManager.h(39): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(44): error C3083: 'HardwareBufferManager': il simbolo a sinistra di '::' deve essere un tipo
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(44): error C2039: 'getSingleton': non è un membro di 'Ogre'
1>D:\code\compiled\ogre\sdk\include\OGRE\OgreTextureManager.h(39): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(44): error C3861: 'getSingleton': identificatore non trovato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(44): error C2228: l'elemento a sinistra di '.createVertexBuffer' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(44): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(45): error C2065: 'mRenderOperation': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(45): error C2228: l'elemento a sinistra di '.vertexData' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(45): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(45): error C2227: l'elemento a sinistra di '->vertexDeclaration' deve puntare a un tipo classe, struttura, unione o generico
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(45): error C2227: l'elemento a sinistra di '->getVertexSize' deve puntare a un tipo classe, struttura, unione o generico
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(47): error C2039: 'HardwareBuffer': non è un membro di 'Ogre'
1>D:\code\compiled\ogre\sdk\include\OGRE\OgreTextureManager.h(39): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(47): error C3083: 'HardwareBuffer': il simbolo a sinistra di '::' deve essere un tipo
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(47): error C2039: 'HBU_DYNAMIC_WRITE_ONLY_DISCARDABLE': non è un membro di 'Ogre'
1>D:\code\compiled\ogre\sdk\include\OGRE\OgreTextureManager.h(39): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(47): error C2065: 'HBU_DYNAMIC_WRITE_ONLY_DISCARDABLE': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(51): error C2065: 'mRenderOperation': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(51): error C2228: l'elemento a sinistra di '.vertexData' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(51): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(51): error C2227: l'elemento a sinistra di '->vertexBufferBinding' deve puntare a un tipo classe, struttura, unione o generico
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(51): error C2227: l'elemento a sinistra di '->setBinding' deve puntare a un tipo classe, struttura, unione o generico
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(51): error C2065: 'mVertexBuffer': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(52): error C2065: 'mRenderOperation': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(52): error C2228: l'elemento a sinistra di '.operationType' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(52): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(52): error C2039: 'RenderOperation': non è un membro di 'Ogre'
1>D:\code\compiled\ogre\sdk\include\OGRE\OgreTextureManager.h(39): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(52): error C3083: 'RenderOperation': il simbolo a sinistra di '::' deve essere un tipo
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(53): error C2065: 'mRenderOperation': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(53): error C2228: l'elemento a sinistra di '.useIndexes' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(53): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(58): error C2065: 'mRenderOperation': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(58): error C2228: l'elemento a sinistra di '.vertexData' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(58): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(59): error C2065: 'mRenderOperation': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(59): error C2228: l'elemento a sinistra di '.vertexData' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(59): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(60): error C2065: 'mVertexBuffer': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(60): error C2228: l'elemento a sinistra di '.setNull' deve avere una classe, struttura o unione
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(60): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(84): error C2065: 'mVertexBuffer': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(84): error C2227: l'elemento a sinistra di '->lock' deve puntare a un tipo classe, struttura, unione o generico
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(84): note: il tipo è 'unknown-type'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(84): error C2039: 'HardwareVertexBuffer': non è un membro di 'Ogre'
1>D:\code\compiled\ogre\sdk\include\OGRE\OgreTextureManager.h(39): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(84): error C3083: 'HardwareVertexBuffer': il simbolo a sinistra di '::' deve essere un tipo
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(84): error C2039: 'HBL_DISCARD': non è un membro di 'Ogre'
1>D:\code\compiled\ogre\sdk\include\OGRE\OgreTextureManager.h(39): note: vedere la dichiarazione di 'Ogre'
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(84): error C2065: 'HBL_DISCARD': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(89): error C2065: 'mVertexBuffer': identificatore non dichiarato
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(89): error C2227: l'elemento a sinistra di '->unlock' deve puntare a un tipo classe, struttura, unione o generico
1>D:\code\source\mygui2\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(89): note: il tipo è 'unknown-type'
1>Generazione del codice in corso...
1>Compilazione progetto "MyGUI.OgrePlatform.vcxproj" NON COMPLETATA.
========== Compilazione: 0 completate, 1 non riuscite, 2 aggiornate, 0 ignorate ==========


any suggest?
i'm a noob until proven otherwise :D
used in my project ;) and thanks to everyone :D
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS
Lax
Hobgoblin
Posts: 583
Joined: Mon Aug 06, 2007 12:53 pm
Location: Saarland, Germany
x 50

Re: MyGUI ported to Ogre 2.1! =)

Post by Lax »

Hi,

are you sure, that you are using MyGUI for Ogre2.1? Because in Ogre2.1 e.g. there is no RenderOperation enum anymore but OperationType...

Regards
Lax

http://www.lukas-kalinowski.com/Homepage/?page_id=1631
Please support Second Earth Technic Base built of Lego bricks for Lego ideas: https://ideas.lego.com/projects/81b9bd1 ... b97b79be62

al2950
OGRE Expert User
OGRE Expert User
Posts: 1227
Joined: Thu Dec 11, 2008 7:56 pm
Location: Bristol, UK
x 157

Re: MyGUI ported to Ogre 2.1! =)

Post by al2950 »

It looks like you have not set the MYGUI_RENDERSYSTEM cmake variable correctly see this post;
http://ogre3d.org/forums/viewtopic.php? ... 69#p518992
al2950
OGRE Expert User
OGRE Expert User
Posts: 1227
Joined: Thu Dec 11, 2008 7:56 pm
Location: Bristol, UK
x 157

Re: MyGUI ported to Ogre 2.1! =)

Post by al2950 »

I have updated MYGUI to work with the latest version of Ogre, I have also added a OGRE_SDK CMAKE variable to make it easier to define where the SDK is.

I have also worked out a way to fix the RTT textures and therefore the editor. But dont have time to complete at the moment. But it is now on my list!

It is currently a pull request pending but I am sure it will be merged soon;
https://github.com/MyGUI/mygui/pull/138
User avatar
nevarim
Gnoll
Posts: 675
Joined: Mon Jul 05, 2010 6:16 pm
Location: Pavia Italy
x 4
Contact:

Re: MyGUI ported to Ogre 2.1! =)

Post by nevarim »

still active? (i'm trying now :D)
i'm a noob until proven otherwise :D
used in my project ;) and thanks to everyone :D
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS
Slicky
Bronze Sponsor
Bronze Sponsor
Posts: 614
Joined: Mon Apr 14, 2003 11:48 pm
Location: Was LA now France
x 25

Re: MyGUI ported to Ogre 2.1! =)

Post by Slicky »

I cloned the 2.1 branch of MyGui. I was able to get it built (some of the options in CMake are not readily apparent as for as which path they are looking for).

I tried running a few of the demos for MyGui but am getting a blank window.

The error from the log is:

Code: Select all

18:39:54: OGRE EXCEPTION(-2147467259:RenderingAPIException): Cannot compile D3D11 high-level shader 1610612739PixelShader_ps Errors:
S:\MyGui 2.1\build\bin\release\1610612739PixelShader_ps.hlsl(17,11-25): error X3074: 'materialArray': implicit array missing initial value
 in D3D11HLSLProgram::compileMicrocode at S:\OGRE2.1\RenderSystems\Direct3D11\src\OgreD3D11HLSLProgram.cpp (line 549)
18:39:54: High-level program 1610612739PixelShader_ps encountered an error during loading and is thus not supported.
OGRE EXCEPTION(-2147467259:RenderingAPIException): Cannot compile D3D11 high-level shader 1610612739PixelShader_ps Errors:
S:\MyGui 2.1\build\bin\release\1610612739PixelShader_ps.hlsl(17,11-25): error X3074: 'materialArray': implicit array missing initial value
 in D3D11HLSLProgram::compileMicrocode at S:\OGRE2.1\RenderSystems\Direct3D11\src\OgreD3D11HLSLProgram.cpp (line 549)
Slicky
Bronze Sponsor
Bronze Sponsor
Posts: 614
Joined: Mon Apr 14, 2003 11:48 pm
Location: Was LA now France
x 25

Re: MyGUI ported to Ogre 2.1! =)

Post by Slicky »

Can anyone confirm that MyGui is working with the latest 2.1?
rujialiu
Goblin
Posts: 296
Joined: Mon May 09, 2016 8:21 am
x 35

Re: MyGUI ported to Ogre 2.1! =)

Post by rujialiu »

Slicky wrote: Tue Sep 04, 2018 9:35 pm Can anyone confirm that MyGui is working with the latest 2.1?
I can confirm. We're using MyGUI with Ogre 2.1 and Ogre 2.2. We updated both Ogre 2.1 and Ogre 2.2 to the latest commit (2nd Sept).
Slicky
Bronze Sponsor
Bronze Sponsor
Posts: 614
Joined: Mon Apr 14, 2003 11:48 pm
Location: Was LA now France
x 25

Re: MyGUI ported to Ogre 2.1! =)

Post by Slicky »

Did you have to do anything special to get it to work? Where did you get your version of MyGui to build?

Good to know. I think I was close to getting it to work but can't be sure.
rujialiu
Goblin
Posts: 296
Joined: Mon May 09, 2016 8:21 am
x 35

Re: MyGUI ported to Ogre 2.1! =)

Post by rujialiu »

Slicky wrote: Wed Sep 05, 2018 7:27 am Did you have to do anything special to get it to work? Where did you get your version of MyGui to build?
Ogre 2.1: nothing special. We used the github version in late 2016, and did a minor modification when shadow refactor was done in Ogre 2.1, after that, we didn't upload MyGUI.

Ogre 2.2: some modifications are required. Our modification is not complete but suites our needs (that's why I haven't published it). I'll probably upload a patch somewhere or send it to al2950 when Ogre 2.2 is getting more popular :)

Maybe your HLMS search path is wrong? :P
al2950
OGRE Expert User
OGRE Expert User
Posts: 1227
Joined: Thu Dec 11, 2008 7:56 pm
Location: Bristol, UK
x 157

Re: MyGUI ported to Ogre 2.1! =)

Post by al2950 »

The MyGui samples are probably still broken, I had a pull request that fixed them, but it got superseded by another pull request, and I have not had time to fix the conflicts. But if you wanted to fix them, or grab the code from the PR which might help you
Slicky
Bronze Sponsor
Bronze Sponsor
Posts: 614
Joined: Mon Apr 14, 2003 11:48 pm
Location: Was LA now France
x 25

Re: MyGUI ported to Ogre 2.1! =)

Post by Slicky »

I'm happy to try. I'm not sure my skills are good enough. Unfortunately with the forums I find myself running around different threads on various topics trying to work out the latest news on things.

I'll take a look though.
al2950
OGRE Expert User
OGRE Expert User
Posts: 1227
Joined: Thu Dec 11, 2008 7:56 pm
Location: Bristol, UK
x 157

Re: MyGUI ported to Ogre 2.1! =)

Post by al2950 »

Yeah I can understand that. To be honest one of the reasons i have not sorted it is Git irritates me (just my opinion!). Maybe I should have a look at it tonight
Slicky
Bronze Sponsor
Bronze Sponsor
Posts: 614
Joined: Mon Apr 14, 2003 11:48 pm
Location: Was LA now France
x 25

Re: MyGUI ported to Ogre 2.1! =)

Post by Slicky »

Thanks if you do. If not I will try. I saw some discussion about porting Gorilla and a helper class for immediate mode GUI. I can't say I understand it but I can try and replicate.

Unfortunately the wiki is not updated much and fragmented between Ogre 1 and 2. I know it is up to us all to contribute to it. I could start a GUi section but my knowledge of the new OGRE is not great although I think I'm going to try converting. For a new user looking for what works as. a GUI there is no definitive list other than various topics.
Owl53
Halfling
Posts: 92
Joined: Sat Jul 22, 2017 2:32 pm
x 4

Re: MyGUI ported to Ogre 2.1! =)

Post by Owl53 »

I know it's not a 2.1 MyGUI specific question, but I'm not aware of a myGUI forum, or another generic myGUI thread. I've been trying to learn how to use MyGUI and it hasn't been very successful. Struggling to understand how to use it from the few tutorials that are available, such as:

http://wiki.ogre3d.org/MyGUI+quickstart

Could someone clarify what the .layout is for please and how to go about creating one if required?
Slicky
Bronze Sponsor
Bronze Sponsor
Posts: 614
Joined: Mon Apr 14, 2003 11:48 pm
Location: Was LA now France
x 25

Re: MyGUI ported to Ogre 2.1! =)

Post by Slicky »

.layout is the file that stores the GUI for the screen that you are creating. There is a layout editor app in the mygui distribution. You can also edit the layout with a text editor if you want.
Owl53
Halfling
Posts: 92
Joined: Sat Jul 22, 2017 2:32 pm
x 4

Re: MyGUI ported to Ogre 2.1! =)

Post by Owl53 »

Slicky wrote: Sat Nov 24, 2018 8:43 pm .layout is the file that stores the GUI for the screen that you are creating. There is a layout editor app in the mygui distribution. You can also edit the layout with a text editor if you want.
I see. Are there any examples of one in the MyGUI library? I have had a look but can't see any. I had noticed the editor but I wanted to try and understand the process better before starting with it. Thanks for the help!
Slicky
Bronze Sponsor
Bronze Sponsor
Posts: 614
Joined: Mon Apr 14, 2003 11:48 pm
Location: Was LA now France
x 25

Re: MyGUI ported to Ogre 2.1! =)

Post by Slicky »

Yes there are samples. Make sure you have the whole download or repository. Once you start playing with it you will understand. The GUI editor make it easier.
Owl53
Halfling
Posts: 92
Joined: Sat Jul 22, 2017 2:32 pm
x 4

Re: MyGUI ported to Ogre 2.1! =)

Post by Owl53 »

Slicky wrote: Sat Nov 24, 2018 9:05 pm Yes there are samples. Make sure you have the whole download or repository. Once you start playing with it you will understand. The GUI editor make it easier.
I have the whole repository yeah. I have noticed the demos but I was wondering if there was a basic tutorial as a starting point, like there is in Ogre, for example. I have tried using the layout editor previously to try and work out what it did, but it seems like a lot of the options in there aren't working for me. If I open the MyGUI log it is full of errors such as "Skin 'WordWrapEmpty' not found. Replaced with default skin. [EditorToolTip.layout]" - I wonder if I have done something wrong in the building of it and therefore it can't find the assets it needs to work properly?
User avatar
nevarim
Gnoll
Posts: 675
Joined: Mon Jul 05, 2010 6:16 pm
Location: Pavia Italy
x 4
Contact:

Re: MyGUI ported to Ogre 2.1! =)

Post by nevarim »

hi all
compiling master inn debug i have those errors with ogre2platform

Code: Select all

Severity	Code	Description	Project	File	Line	Suppression State
Error (active)		class "Ogre::Vector<3, Ogre::Real>" has no member "UNIT_Y"	MyGUI.Ogre2Platform	c:\Program Files (x86)\OGRE\include\OGRE\OgreCamera.h	340	
Error (active)		class "Ogre::Vector<3, Ogre::Real>" has no member "ZERO"	MyGUI.Ogre2Platform	c:\Program Files (x86)\OGRE\include\OGRE\OgreCamera.h	435	
Error (active)		class "Ogre::Vector<3, Ogre::Real>" has no member "ZERO"	MyGUI.Ogre2Platform	c:\Program Files (x86)\OGRE\include\OGRE\OgreEntity.h	583	
Error (active)		class "Ogre::Vector<3, Ogre::Real>" has no member "UNIT_SCALE"	MyGUI.Ogre2Platform	c:\Program Files (x86)\OGRE\include\OGRE\OgreMatrix4.h	319	
Error (active)		class "Ogre::Vector<3, Ogre::Real>" has no member "ZERO"	MyGUI.Ogre2Platform	c:\Program Files (x86)\OGRE\include\OGRE\OgreNode.h	444	
Error (active)		class "Ogre::Vector<3, Ogre::Real>" has no member "ZERO"	MyGUI.Ogre2Platform	c:\Program Files (x86)\OGRE\include\OGRE\OgreNode.h	457	
Error (active)		class "Ogre::Vector<3, Ogre::Real>" has no member "ZERO"	MyGUI.Ogre2Platform	c:\Program Files (x86)\OGRE\include\OGRE\OgreSceneNode.h	312	
Error (active)		class "Ogre::Vector<3, Ogre::Real>" has no member "ZERO"	MyGUI.Ogre2Platform	c:\Program Files (x86)\OGRE\include\OGRE\OgreSceneNode.h	324	
Error (active)		class "Ogre::Vector<3, Ogre::Real>" has no member "UNIT_Y"	MyGUI.Ogre2Platform	c:\Program Files (x86)\OGRE\include\OGRE\OgreSceneNode.h	358	
Error (active)		class "Ogre::Vector<3, Ogre::Real>" has no member "NEGATIVE_UNIT_Z"	MyGUI.Ogre2Platform	c:\Program Files (x86)\OGRE\include\OGRE\OgreSceneNode.h	375	
Error (active)		class "Ogre::Vector<3, Ogre::Real>" has no member "NEGATIVE_UNIT_Z"	MyGUI.Ogre2Platform	c:\Program Files (x86)\OGRE\include\OGRE\OgreSceneNode.h	379	
Error (active)		class "Ogre::Vector<3, Ogre::Real>" has no member "NEGATIVE_UNIT_Z"	MyGUI.Ogre2Platform	c:\Program Files (x86)\OGRE\include\OGRE\OgreSceneNode.h	387	
Error (active)		class "Ogre::Vector<3, Ogre::Real>" has no member "NEGATIVE_UNIT_Z"	MyGUI.Ogre2Platform	c:\Program Files (x86)\OGRE\include\OGRE\OgreSceneNode.h	407	
Error (active)		class "Ogre::Vector<3, Ogre::Real>" has no member "ZERO"	MyGUI.Ogre2Platform	c:\Program Files (x86)\OGRE\include\OGRE\OgreSceneNode.h	408	
Error (active)		class "Ogre::Vector<3, Ogre::Real>" has no member "UNIT_SCALE"	MyGUI.Ogre2Platform	c:\Program Files (x86)\OGRE\include\OGRE\OgreStaticGeometry.h	613	
Error (active)		cannot open source file "Compositor/Pass/OgreCompositorPassDef.h"	MyGUI.Ogre2Platform	f:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\include\MyGUI_Ogre2RenderManager.h	21	
Error (active)		cannot open source file "OgrePixelBox.h"	MyGUI.Ogre2Platform	f:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\include\MyGUI_Ogre2Texture.h	19	
Error (active)		cannot open source file "OgreHlms.h"	MyGUI.Ogre2Platform	f:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\include\MyGUI_Ogre2Texture.h	22	
Error (active)		cannot open source file "OgreHlmsSamplerblock.h"	MyGUI.Ogre2Platform	f:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\include\MyGUI_Ogre2Texture.h	24	
Error (active)		cannot open source file "Hlms/Unlit/OgreHlmsUnlitDatablock.h"	MyGUI.Ogre2Platform	f:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\include\MyGUI_Ogre2Texture.h	26	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2GuiRenderable.h	18	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2GuiRenderable.h	19	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2GuiRenderable.h	26	
Error	C2039	'IdType': is not a member of 'Ogre'	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2GuiMoveable.h	16	
Error	C2061	syntax error: identifier 'IdType'	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2GuiMoveable.h	16	
Error	C2065	'id': undeclared identifier	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2GuiMoveable.h	18	
Error	C2065	'objectMemoryManager': undeclared identifier	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2GuiMoveable.h	18	
Error	C2065	'manager': undeclared identifier	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2GuiMoveable.h	18	
Error	C2065	'renderQueueId': undeclared identifier	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2GuiMoveable.h	18	
Error	C1083	Cannot open include file: 'Compositor/Pass/OgreCompositorPass.h': No such file or directory	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2RenderManager.h	20	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2GuiRenderable.h	18	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2GuiRenderable.h	19	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2GuiRenderable.h	26	
Error	C2039	'IdType': is not a member of 'Ogre'	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2GuiMoveable.h	16	
Error	C2061	syntax error: identifier 'IdType'	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2GuiMoveable.h	16	
Error	C2065	'id': undeclared identifier	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2GuiMoveable.h	18	
Error	C2065	'objectMemoryManager': undeclared identifier	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2GuiMoveable.h	18	
Error	C2065	'manager': undeclared identifier	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2GuiMoveable.h	18	
Error	C2065	'renderQueueId': undeclared identifier	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2GuiMoveable.h	18	
Error	C1083	Cannot open include file: 'Compositor/Pass/OgreCompositorPass.h': No such file or directory	MyGUI.Ogre2Platform	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2RenderManager.h	20	
Error	C1083	Cannot open include file: 'OgrePixelBox.h': No such file or directory	MyGUI.Ogre2Platform	F:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\include\MyGUI_Ogre2Texture.h	19	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	F:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\include\MyGUI_Ogre2VertexBuffer.h	40	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	F:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\include\MyGUI_Ogre2VertexBuffer.h	63	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	F:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\include\MyGUI_Ogre2VertexBuffer.h	64	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	F:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2VertexBuffer.cpp	37	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	F:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2VertexBuffer.cpp	40	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	F:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2VertexBuffer.cpp	42	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	F:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2VertexBuffer.cpp	43	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	F:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2VertexBuffer.cpp	44	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	F:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2VertexBuffer.cpp	48	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	F:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2VertexBuffer.cpp	51	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	F:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2VertexBuffer.cpp	56	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	F:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2VertexBuffer.cpp	93	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	F:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\include\MyGUI_Ogre2GuiRenderable.h	18	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	F:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\include\MyGUI_Ogre2GuiRenderable.h	19	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	F:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\include\MyGUI_Ogre2GuiRenderable.h	26	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	F:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2GuiRenderable.cpp	16	
Error	C3083	'v1': the symbol to the left of a '::' must be a type	MyGUI.Ogre2Platform	F:\game_develop\mygui\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2GuiRenderable.cpp	21	
Error	C2039	'WindowEventListener': is not a member of 'Ogre'	Common	f:\game_develop\mygui\common\base\ogre2\BaseManager.h	32	
Error	C2504	'WindowEventListener': base class undefined	Common	f:\game_develop\mygui\common\base\ogre2\BaseManager.h	32	
Error	C1083	Cannot open include file: 'OgrePixelBox.h': No such file or directory	Common	f:\game_develop\mygui\platforms\ogre2\ogre2platform\include\MyGUI_Ogre2Texture.h	19	
Error	C2039	'WindowEventListener': is not a member of 'Ogre'	Demo_ScrollView	F:\game_develop\mygui\Common\Base\Ogre\BaseManager.h	30	
Error	C2504	'WindowEventListener': base class undefined	Demo_ScrollView	F:\game_develop\mygui\Common\Base\Ogre\BaseManager.h	30	
i'm a noob until proven otherwise :D
used in my project ;) and thanks to everyone :D
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS
User avatar
cc9cii
Halfling
Posts: 99
Joined: Tue Sep 18, 2018 4:53 am
x 20

Re: MyGUI ported to Ogre 2.1! =)

Post by cc9cii »

Hello, I hope it is ok to necro a relatively old thread - it seemed to be the most appropriate to my question - if I should start a new subject instead please let me know.

I'm using MyGUI with Ogre 2.1.1 using this port by al2950

I'm porting an existing app which puts data into Ogre::PixelBox then blitFromMemory() into Ogre::HardwarePixelBoxSharedPtr of a texture, in a loop, basically:

Code: Select all

Ogre::PixelBox pixelbox(width, height, 1, Ogre::PF_BYTE_RGBA, &vp->data[0]);
Ogre::v1::HardwarePixelBufferSharedPtr buffer = mTexture->getBuffer();
buffer->blitFromMemory(pixelbox);
I can tell that the data into the PixelBox gets updated (because I can make it stop/exit out of the loop and the last frame is still visible). However until I stop it the RenderWindow is blank (i.e. white). I have attempted to update the rendering by creating a compositor workspace and calling _update():

Code: Select all

const Ogre::String workspaceName = "scene workspace";
const Ogre::IdString workspaceNameHash = workspaceName;

Ogre::CompositorManager2* compositorManager = Ogre::Root::getSingleton().getCompositorManager2();
CompositorWorkspaceDef* workspaceDef = compositorManager->getWorkspaceDefinitionNoThrow(workspaceName);
if (!workspaceDef)
{
    Ogre::CompositorNodeDef *nodeDef = compositorManager->addNodeDefinition("scene workspace");
    //Input texture
    nodeDef->addTextureSourceName("WindowRT", 0, Ogre::TextureDefinitionBase::TEXTURE_INPUT);
    nodeDef->setNumTargetPass(1);

    Ogre::CompositorTargetDef *targetDef = nodeDef->addTargetPass("WindowRT");
    targetDef->setNumPasses(3);
    {
        Ogre::CompositorPassClearDef *passClear = static_cast<Ogre::CompositorPassClearDef*>
                (targetDef->addPass(Ogre::PASS_CLEAR));
        Ogre::CompositorPassSceneDef *passScene = static_cast<Ogre::CompositorPassSceneDef*>
                (targetDef->addPass(Ogre::PASS_SCENE));
        passScene->mShadowNode = Ogre::IdString();

        // For the MyGUI pass
        targetDef->addPass(Ogre::PASS_CUSTOM, MyGUI::OgreCompositorPassProvider::mPassId);
    }

    Ogre::CompositorWorkspaceDef *workDef = compositorManager->addWorkspaceDefinition(workspaceName)
    workDef->connectExternal(0, nodeDef->getName(), 0);
}
workdspace = compositorManager->addWorkspace(sceneManager, renderWindow, camera, workspaceNameHash, true);
But the window is still blank. Initially I thought maybe the HardwarePixelBuffer is not linked to the render window but then if so why does the output become visible at the end? Is there something I have to do with MyGUI custom pass?

EDIT: some more info in case it helps - it is using MyGUI::ImageBox and the texture above is set using ImageBox::setImageTexture(). So my current theory is that somehow this ImageBox is not being refreshed?

Any help or hint will be much appreciated.
Lax
Hobgoblin
Posts: 583
Joined: Mon Aug 06, 2007 12:53 pm
Location: Saarland, Germany
x 50

Re: MyGUI ported to Ogre 2.1! =)

Post by Lax »

Hi,

First try to create a workspace from external compositor code. You can also orientate on the Ogre PbsSample compositor. If this works, then maybe your node connection in your code is wrong.

Code: Select all

compositor_node PbsCompositionNode
{
	in 0 rt_output
	// Take input texture #1 and use the local name "rtN" for reference in this scope
	in 1 rtN

	target rt_output
	{
		pass render_quad
	    {
			load { all dont_care }
			//Ignore the alpha channel
			material 	Ogre/Copy/4xFP32
	    	input 0 	rtN
		}
		
		pass render_scene
		{
			lod_update_list	off

			//Render Overlays
			overlays		on
			rq_first		254
			rq_last			255
		}
		
		pass custom MYGUI
		{
		   
		}
	}
}
Best Regards
Lax

http://www.lukas-kalinowski.com/Homepage/?page_id=1631
Please support Second Earth Technic Base built of Lego bricks for Lego ideas: https://ideas.lego.com/projects/81b9bd1 ... b97b79be62

User avatar
cc9cii
Halfling
Posts: 99
Joined: Tue Sep 18, 2018 4:53 am
x 20

Re: MyGUI ported to Ogre 2.1! =)

Post by cc9cii »

Hi, thanks for your reply but I'm afraid I don't quite understand. Are you suggesting that I should replace the node definition with the one you provided? (i.e. PbsCompositionNode)
Lax
Hobgoblin
Posts: 583
Joined: Mon Aug 06, 2007 12:53 pm
Location: Saarland, Germany
x 50

Re: MyGUI ported to Ogre 2.1! =)

Post by Lax »

Hi,

you should create a simple workspace and just add the the MyGUI pass to check if it will work. You can orientate at the sample "Sample_PbsMaterials". In that sample a workspace from file is loaded. You could use that workspace and just add the MyGUI pass to see if it works.
The workspace is located at: "..l\Ogre2.2SDK\Samples\Media\2.0\scripts\Compositors\PbsMaterials.compositor".

Also note: The order of passes is important, since MyGUI should be rendered at last, the MyGUI pass must be the last of all passes inside the compositor node.

Maybe it will help, here my MyGUI initialisation code snipped:

Code: Select all

void Core::initMyGui(Ogre::SceneManager* sceneManager, Ogre::Camera* camera, const Ogre::String& logName)
	{
		this->myGuiOgrePlatform = new MyGUI::Ogre2Platform();
		// Attention: Must be initilialized for all groups and not only for essential, else only images from essential are known!
		this->myGuiOgrePlatform->initialise(this->renderWindow, sceneManager, Ogre::ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME, logName);

		this->myGui = new MyGUI::Gui();
		this->myGui->initialise();

		MyGUI::ResourceManager::getInstancePtr()->load("MyGUI_BlackBlueSkins.xml");
		MyGUI::ResourceManager::getInstancePtr()->load("MyGUI_Skin_BlackTheme.xml");
		MyGUI::ResourceManager::getInstancePtr()->load("MyGUI_Template_BlackTheme.xml");
	}
Note: If your scene manager should change (e.g. loading a different scene yet having the same MyGUI instance). It can be reset at runtime during the following code snipped:

Code: Select all

this->myGuiOgrePlatform->getRenderManagerPtr()->setSceneManager(sceneManager);
Note: When using Mouse/Keyboard Events, also MyGUI must be notified e.g.:

Code: Select all

bool Core::mousePressed(const OIS::MouseEvent& evt, OIS::MouseButtonID id)
	{
		MyGUI::InputManager::getInstancePtr()->injectMousePress(evt.state.X.abs, evt.state.Y.abs, MyGUI::MouseButton::Enum(id));
		return true;
	}
	...
	void Core::update(Ogre::Real dt)
	{
	   ...
	   MyGUI::Gui::getInstancePtr()->_injectFrameEntered(dt);
	}
Best Regards
Lax

http://www.lukas-kalinowski.com/Homepage/?page_id=1631
Please support Second Earth Technic Base built of Lego bricks for Lego ideas: https://ideas.lego.com/projects/81b9bd1 ... b97b79be62

Post Reply