4 registered members (7th_zorro, Quad, VoroneTZ, 1 invisible),
623
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Rocket Lib for LiteC
#416981
02/06/13 20:28
02/06/13 20:28
|
Joined: Nov 2007
Posts: 318 Brasil, Paraná
NeoNeper
OP
Senior Member
|
OP
Senior Member
Joined: Nov 2007
Posts: 318
Brasil, Paraná
|
hello friends! I would like to make a suggestion for new implementations 3dgs. A lot of time we are suffering in creating GUI utilities for our projects LITEC A Wonderful idea, seriously Make LITEC be compatible with some external GUI, such as a libRocket. http://librocket.com/
Please! Use easy words to be translated. because my English is not very good! Grateful. _______________________________________________________
|
|
|
Re: Rocket Lib for LiteC
[Re: jcl]
#417529
02/13/13 15:29
02/13/13 15:29
|
Joined: Jul 2001
Posts: 6,904
HeelX
Senior Expert
|
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
I can not say at the moment, but will tell you when we made a decision. Thanks. I guess I'll see it on the forecast then. Btw, I am wondering what happened to the beta/forecast page... it wasn't updated a long time.
|
|
|
Re: Rocket Lib for LiteC
[Re: HeelX]
#417531
02/13/13 15:42
02/13/13 15:42
|
Joined: Nov 2012
Posts: 62 Istanbul
Talemon
Junior Member
|
Junior Member
Joined: Nov 2012
Posts: 62
Istanbul
|
Hey, I've spent the last 2 days trying to make it work. I've come to a point where everything is supposed to work but nothing is rendered. You can find my code here: https://github.com/talemon/alibrocketYou need to add the assets that come with the librocket samples to your root folder like fonts, rcss, rml and images.
|
|
|
Re: Rocket Lib for LiteC
[Re: Talemon]
#417566
02/13/13 22:31
02/13/13 22:31
|
Joined: Jul 2001
Posts: 6,904
HeelX
Senior Expert
|
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
Hey Talemon, thanks for your effort! I can't test it right now, though but I had a look into your source code. 1.) I see no Lite-C demo which tests the thing...? 2.) I see that you use custom way to export RockInit, RockDestroy and RockUpdate... I would use the standard way with DLLFUNC (which might be exactly the same but it is always a good idea to use the standard procedure) 3.) have you tied the RockUpdate function to render_layer? 4.) Is the DLL really loaded and up and running? (check acklog) Regards, -Christian
|
|
|
Re: Rocket Lib for LiteC
[Re: HeelX]
#417579
02/14/13 08:01
02/14/13 08:01
|
Joined: Nov 2012
Posts: 62 Istanbul
Talemon
Junior Member
|
Junior Member
Joined: Nov 2012
Posts: 62
Istanbul
|
Hey HeelX, 1)I guess this should do:
void RockInit(void);
void RockDestroy(void);
void RockUpdate(void);
void main()
{
level_load(NULL);
}
function on_k_event()
{
RockInit();
wait(1);
while(1)
{
RockUpdate();
wait(1);
}
}
2) Yes, I've used regular win32 style of exporting but both are actually the same: DLLFUNC is defined as:
#define DLLFUNC extern "C" __declspec(dllexport)
And my code uses this and also extern "C" at the declarations:
#define ALIBROCKET_API __declspec(dllexport)
3) I didn't know about these render_ events, I will try to experiment with them. 4) Yes the I've gotten rid of every error and it loads up fine. I added diag()s to various places and confirmed that they are being called. libRocket calls my DLL's RenderCompiledGeometry function with many triangles(which I've confirmed non-zero with diag_var()s) P.S: I even used procmon and confirmed that the application is reading and loading the resource files, they are all fine.
|
|
|
|