Pages: 1
Author Topic: Function Peer Review Board  (76,151 Views)
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Posted on: September 09, 2010, 05: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.
Post made September 20, 2010, 06:28:33 AM was deleted at the author's request.
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #2 Posted on: September 20, 2010, 02:11:38 PM
If they work when added as a function in Whitespace, or are really worth porting, I don't see why not.
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #3 Posted on: September 25, 2010, 03:20:58 PM
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?
Offline (Unknown gender) TGMG

Developer
Joined: Jun 2008
Posts: 107
View profile WWW
Reply #4 Posted on: September 25, 2010, 05: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.
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #5 Posted on: September 25, 2010, 06: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).
Offline (Unknown gender) IsmAvatar

LateralGM Developer
LGM Developer
Joined: Apr 2008
Posts: 877
View profile
Reply #6 Posted on: September 25, 2010, 11: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.
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #7 Posted on: September 26, 2010, 02:09:17 AM
Also, console_show_message().
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #8 Posted on: September 26, 2010, 01:54:41 PM
Quotetext 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.

QuoteAlso, 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.
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #9 Posted on: September 26, 2010, 07: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...
Offline (Unknown gender) IsmAvatar

LateralGM Developer
LGM Developer
Joined: Apr 2008
Posts: 877
View profile
Reply #10 Posted on: April 22, 2011, 10:27:53 PM
Fonts and draw_text are implemented now (r710 stable has them).
Pages: 1