Search found 11 matches

by Xeverous
Thu Feb 09, 2017 7:20 pm
Forum: Advanced Help
Topic: How to create rotateable gui text?
Replies: 8
Views: 1262

Re: How to create rotateable gui text?

t's probably best to keep SMeshBuffer as pointer not as object (it kinda works when one is careful, but is bad style usually as it's derived from a reference-counted object, I should change that in my code as well). No, it's not. Setting lifetime of variables by scope is the default way. Almost eve...
by Xeverous
Wed Feb 08, 2017 3:50 pm
Forum: Advanced Help
Topic: How to create rotateable gui text?
Replies: 8
Views: 1262

Re: How to create rotateable gui text?

I'm having few problems: 1. How should I instantiate MeshBuffer? Just irr::scene::SMeshBuffer MeshBuffer which triggers default ctor? 2. irr::core::matrix4 trans(some_base_transformation_from_a_scene_node_or_so); . How to I get it? Should I get transformation from my parent-to-be object? Can I const...
by Xeverous
Tue Feb 07, 2017 6:40 pm
Forum: Advanced Help
Topic: How to create rotateable gui text?
Replies: 8
Views: 1262

Re: How to create rotateable gui text?

This line     // reset rt     videoDriver->setRenderTarget((irr::video::ITexture *)nullptr, 0); Is pretty strange for me. While I understand your intent, why are you trying to convert nullptr (even with old C-like syntax)? This keyword was created to be implicitly convertibe to any pointer type with...
by Xeverous
Mon Feb 06, 2017 10:13 pm
Forum: Advanced Help
Topic: How to create rotateable gui text?
Replies: 8
Views: 1262

How to create rotateable gui text?

As in title. I searched forum, found few threads mentioning iTextSceneNode (will this work for 2d?) and others rendering IGUIStaticText to Texture. I have also searched IrrExt classes and their's text has no rotation functionality either. I don't reall know which one to choose and how to do it. What...
by Xeverous
Mon Feb 06, 2017 9:18 pm
Forum: Advanced Help
Topic: Best way to rotate a ITextSceneNode
Replies: 6
Views: 2296

Re: Best way to rotate a ITextSceneNode

Seems it was just reposted to highlight code the C++ way, not as raw text
by Xeverous
Mon Jan 30, 2017 9:38 pm
Forum: Beginners Help
Topic: What's the inner design [pattern] of Irrlicht?
Replies: 13
Views: 1642

What's the inner design [pattern] of Irrlicht?

When I have started reading code from examples, I was a bit scared that Irrlicht is old and unmaintained. I was mostly scared by all methods that return pointers and lack of references in the first glance. I'm more used to modern C++ (11 or 14 standard) where things like Object* obj; int arr[10]; ar...
by Xeverous
Mon Jan 30, 2017 8:59 pm
Forum: Beginners Help
Topic: Is Irrlicht a good choice for me?
Replies: 6
Views: 1408

Re: Is Irrlicht a good choice for me?

I like Irrlicht more, but that's mainly because there is no engine for what i have in mind and Irrlicht is the easiest to program and extend. I like how Irrlicht allows me to do everything custom. I don't like old-C++like features like inheriting from irr::IReferenceCounted, but fortunately C++14 s...
by Xeverous
Sat Jan 28, 2017 1:08 pm
Forum: Game Programming
Topic: Small SDL Video Game
Replies: 8
Views: 5494

Re: Small SDL Video Game

File is unavailable. Says it has been deleted due to now downloads in last 100 days. You might want to use eg Gdrive and get a permanent link
by Xeverous
Sat Jan 28, 2017 1:06 pm
Forum: Advanced Help
Topic: Irrlicht + SFML. Error creating device from X11 window ID
Replies: 3
Views: 2616

Re: Irrlicht + SFML. Error creating device from X11 window I

Updated topic. Added error message and new question
by Xeverous
Wed Jan 25, 2017 3:03 pm
Forum: Advanced Help
Topic: Irrlicht + SFML. Error creating device from X11 window ID
Replies: 3
Views: 2616

Re: How to use external window handle created by SFML?

Win32 is Windows specific. There seems to be no problem passing HWND to Irrlicht. The whole Windows API operates on void pointers.

Thanks for the idea. SFML uses SDL internally, so I should search forum for SDL, but look into unix specific examples.
by Xeverous
Tue Jan 24, 2017 8:32 pm
Forum: Advanced Help
Topic: Irrlicht + SFML. Error creating device from X11 window ID
Replies: 3
Views: 2616

Irrlicht + SFML. Error creating device from X11 window ID

So what I want is to render using Irrlicht into a window created by SFML example of it: http://www.sfml-dev.org/documentation/2.4.1/ I want to use SFML due to it's very modern C++ code (enum classes, const/rvalue references, almost no pointers, ...) etc and due to it's flexibility with SFGUI (http:/...