Code: Select all
bool sceneLoaded = scene->loadScene(path("../../assets/map1.irr"));
assert(sceneLoaded);
Code: Select all
Unable to open scene file: ./.ast/a1ir²²▌▌▌╜j\
Code: Select all
bool sceneLoaded = scene->loadScene(path("../../assets/map1.irr"));
assert(sceneLoaded);
Code: Select all
Unable to open scene file: ./.ast/a1ir²²▌▌▌╜j\
Code: Select all
class Graphics
{
Client& _client;
IrrlichtDevice* _device;
IVideoDriver* _driver;
ISceneManager* _sceneManager;
IGUIEnvironment* _gui;
TopDownCamera _camera;
Terrain _terrain;
public:
Graphics(Client& client);
~Graphics();
// Draws the scene as is and waits until the desired frametime has passed
bool draw();
};
Code: Select all
#include "Graphics.h"
#include "Scene.h"
#include <irrlicht\irrlicht.h>
Graphics::Graphics(Client& client)
: _client(client)
{
_device = createDevice(video::EDT_OPENGL, dimension2d<u32>(640, 480), 16U, false, false, true, 0);
if (!_device)
{
printf("Graphics: Error creating the IrrlichtDevice!\n");
return;
}
_device->setWindowCaption(L"MMO Client");
printf("%ws\n", _device->getFileSystem()->getWorkingDirectory().c_str());
_driver = _device->getVideoDriver();
_sceneManager = _device->getSceneManager();
// Setup the gui
_gui = _device->getGUIEnvironment();
_gui->addStaticText(L"Hello World! This is Irrlicht with the OpenGL renderer!", rect<s32>(10, 10, 260, 22), true);
_camera = TopDownCamera(_sceneManager);
bool sceneLoaded = _sceneManager->loadScene(path("../../assets/map1.irr"));
assert(sceneLoaded);
}
Graphics::~Graphics()
{
if (_driver)
_driver->drop();
}
bool Graphics::draw()
{
if (!_device->run())
return false;
_driver->beginScene(true, true, SColor(255, 255, 255, 255));
_sceneManager->drawAll();
//_gui->drawAll();
_driver->endScene();
return true;
}
Code: Select all
Irrlicht Engine version 1.8.4
(Build 9200)
WGL_extensions: WGL_EXT_depth_float WGL_ARB_buffer_region WGL_ARB_extensions_string WGL_ARB_make_current_read WGL_ARB_pixel_format WGL_ARB_pbuffer WGL_EXT_extensions_string WGL_EXT_swap_control WGL_ARB_multisample WGL_ARB_pixel_format_float WGL_ARB_framebuffer_sRGB WGL_ARB_create_context WGL_ARB_create_context_profile WGL_EXT_pixel_format_packed_float WGL_EXT_create_context_es_profile WGL_EXT_create_context_es2_profile WGL_NV_DX_interop WGL_WGL_INTEL_cl_sharing WGL_NV_DX_interop2 WGL_ARB_create_context_robustness WGL_ARB_context_flush_control
Pixel Format: 20
Using renderer: OpenGL 4.5.0
Intel(R) HD Graphics 630: Intel
OpenGL driver version is 1.2 or better.
GLSL version: 4.5
Resizing window (640 480)
C:/Users/liamd/source/repos/MMO/MMOClient
Unable to open scene file: ./.ast/a1ir²²