Bonjour, j'ai posté dans divers forum (les forums de ses libs...), mais aucune réponse (du moin, aucune du fait comment assemblé ses deux libs)

Donc je m'en remet à vous ! Bon, j'ai compilé SFML 2.0 et MyGui 3.2.0

Voici mon code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include <MyGUI.h>
#include <MyGUI_DataManager.h>
#include <MyGUI_OpenGLImageLoader.h>
#include <MyGUI_OpenGLDataManager.h>
#include <MyGUI_OpenGLPlatform.h>
#include <MyGUI_OpenGLRenderManager.h>
 
#include "OpenGLImageLoader_Devil.hpp"
 
#include <SFML/Audio.hpp>
#include <SFML/Graphics.hpp>
 
#include <string>
#include <iostream>
 
using namespace std;
 
int main()
{
    // Create the main window
    sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");
 
    MyGUI::Gui* mGUI;
 
    OpenGLImageLoader_Devil* mIL = new OpenGLImageLoader_Devil();
 
    MyGUI::OpenGLPlatform* mPlatform = new MyGUI::OpenGLPlatform();
    mPlatform->initialise(mIL, "mIL");
 
    mPlatform->getDataManagerPtr()->addResourceLocation("Media\MyGUI_Media", false);
    mPlatform->getRenderManagerPtr()->setViewSize(400,400);
 
    mGUI = new MyGUI::Gui();
    mGUI->initialise("MyGUI_Core.xml");
 
    MyGUI::ButtonPtr button = mGUI->createWidget<MyGUI::Button>("Button", 10, 10, 300, 26, MyGUI::Align::Default, "Main");
    button->setCaption("exit");
 
     // Start the game loop
    while (window.IsOpen())
    {
        // Process events
        sf::Event event;
        while (window.PollEvent(event))
        {
            // Close window : exit
            if (event.Type == sf::Event::Closed)
                window.Close();
        }
 
        // Clear screen
        window.Clear(sf::Color(255,200,0));
 
        mPlatform->getRenderManagerPtr()->drawOneFrame();
 
        // ET MAINTENANT ? Comment faire pour récupérer l'affichage de la gui ???
 
        // Update the window
        window.Display();
    }
 
    return EXIT_SUCCESS;
}
Voilà, je bloque ! Je ne sais absolument pas comment faire pour récupérer l'affichage graphique de mygui, même par pixel sa serait bien si n'importe qu'elle moyen serait bon !