Pages: 1
  Print  
Author Topic: Function Peer Review Board  (Read 15762 times)
Offline (Male) Josh @ Dreamland
Posted on: September 09, 2010, 12:24:09 pm

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
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.
« Last Edit: September 09, 2010, 12:25:46 pm by Josh @ Dreamland » Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Post made September 20, 2010, 01:28:33 am was deleted at the author's request.
Offline (Male) Josh @ Dreamland
Reply #2 Posted on: September 20, 2010, 09:11:38 am

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
If they work when added as a function in Whitespace, or are really worth porting, I don't see why not.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) TheExDeus
Reply #3 Posted on: September 25, 2010, 10:20:58 am

Developer
Joined: Apr 2008
Posts: 1860

View Profile
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?
« Last Edit: September 25, 2010, 10:28:16 am by HaRRiKiRi » Logged
Offline (Unknown gender) TGMG
Reply #4 Posted on: September 25, 2010, 12:35:07 pm

Developer
Joined: Jun 2008
Posts: 107

View Profile WWW Email
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.
Logged
me
GMbed 2.0 :: Embed you gm games in websites.
Offline (Unknown gender) TheExDeus
Reply #5 Posted on: September 25, 2010, 01:02:42 pm

Developer
Joined: Apr 2008
Posts: 1860

View Profile
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).
« Last Edit: September 25, 2010, 01:35:55 pm by HaRRiKiRi » Logged
Offline (Female) IsmAvatar
Reply #6 Posted on: September 25, 2010, 06:59:44 pm

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 877

View Profile Email
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.
Logged
Offline (Male) Josh @ Dreamland
Reply #7 Posted on: September 25, 2010, 09:09:17 pm

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
Also, console_show_message().
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) TheExDeus
Reply #8 Posted on: September 26, 2010, 08:54:41 am

Developer
Joined: Apr 2008
Posts: 1860

View Profile
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.
Logged
Offline (Male) Josh @ Dreamland
Reply #9 Posted on: September 26, 2010, 02:19:54 pm

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
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...
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Female) IsmAvatar
Reply #10 Posted on: April 22, 2011, 05:27:53 pm

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 877

View Profile Email
Fonts and draw_text are implemented now (r710 stable has them).
Logged
Pages: 1
  Print