ENIGMA Forums

Contributing to ENIGMA => Function Peer Review => Topic started by: Josh @ Dreamland on September 09, 2010, 12:24:09 PM

Title: Function Peer Review Board
Post by: Josh @ Dreamland on September 09, 2010, 12:24:09 PM
Greetings, all.

This board was added with the completion (However temporary) of ENIGMA's C++ Definitions resource.

Using this resource, users can add their own C++ functions and types to ENIGMA, or include them from other headers.

This board is for users who wish to share their C++ function sets, and perhaps even include them in the specification. If you meet developer peer review, and your function is included in the Game Maker spec, it will almost certainly be added.

Basic board rules apply. No flaming; every contribution or attempt at a contribution, however poor or inefficient, is welcome.
A sad cry of a stab in the dark at implementing a function may even provoke a developer to implement it correctly and add it in.

Cheers.
Title: Re: Function Peer Review Board
Post by: Fede-lasse on September 20, 2010, 01:28:33 AM
GML scripts allowed?
Title: Re: Function Peer Review Board
Post by: Josh @ Dreamland on September 20, 2010, 09:11:38 AM
If they work when added as a function in Whitespace, or are really worth porting, I don't see why not.
Title: Re: Function Peer Review Board
Post by: TheExDeus on September 25, 2010, 10:20:58 AM
Can I somehow output to the console from the exe? I just want some good way to debug functions I make. Its hard when I don't have any way to output that information.

So the question is, can I somehow use something like print or printf to output to console?
Title: Re: Function Peer Review Board
Post by: TGMG on September 25, 2010, 12:35:07 PM
I use printf all the time when debugging functions and yes I just checked it works in whitespace, just remember to add \n, which i sometimes forget then wonder where the output is.
Title: Re: Function Peer Review Board
Post by: TheExDeus on September 25, 2010, 01:02:42 PM
Thanks for the information. It works. :)

Edit: Now I just have to wait until backgrounds are in so I can make all of those functions too.
Edit2: And where are draw_text function? I can't find it anywhere. I wanted to make text functions (I know fonts are not implemented yet, but stuff like scaling etc, should be possible).
Title: Re: Function Peer Review Board
Post by: IsmAvatar on September 25, 2010, 06:59:44 PM
text functions don't exist because fonts aren't implemented yet. If you want to build on top of them, feel free, just make a dummy draw_text function to build on top of.
Title: Re: Function Peer Review Board
Post by: Josh @ Dreamland on September 25, 2010, 09:09:17 PM
Also, console_show_message().
Title: Re: Function Peer Review Board
Post by: TheExDeus on September 26, 2010, 08:54:41 AM
Quote
text functions don't exist because fonts aren't implemented yet. If you want to build on top of them, feel free, just make a dummy draw_text function to build on top of.
I thought there was draw_text.. I think I even used it before. Thou it doesn't work now (it doesn't trow an error either). So I guess I will need to wait a little.

Quote
Also, console_show_message().
Do I need to declare it somewhere? Because it won't work if I just use it in a function. Anyhow, print and prinf does suffice. Also, when background are going to be in? If you could implement it and make a draw_background function, then I will do all the rest of them.
Title: Re: Function Peer Review Board
Post by: Josh @ Dreamland on September 26, 2010, 02:19:54 PM
Once upon a time, there was. It used wgl to generate lists from font glyphs, then it drew them as primitives. However, the triangle count sometimes damaged it more than a like-sized bitmap draw would have, and there was no anti-aliasing... It was nasty. Not to mention it wasn't even remotely cross-platform, as most resources should be. All that being the case, it ended up getting buried. We'll be re-implementing them after Ism finds a way to get Java to render the glyphs white-on-black in an image.

I will add backgrounds to my list, but I have no ETA on them.

Maybe it was cons_show_message(). But it's just a string wrapper to puts(), so...
Title: Re: Function Peer Review Board
Post by: IsmAvatar on April 22, 2011, 05:27:53 PM
Fonts and draw_text are implemented now (r710 stable has them).