ENIGMA Forums

Contributing to ENIGMA => Function Peer Review => Topic started by: RetroX on December 05, 2010, 04:40:20 pm

Title: NEEDED FUNCTION LIST
Post by: RetroX on December 05, 2010, 04:40:20 pm
I was bored and made one.

I compared GM8's fnames file to the function, definition, and types list for ENIGMA.  Here are the functions and definitions that need to be made:
http://dl.dropbox.com/u/6125077/enigma/needed-stuff.txt

I can imagine this being very useful for some people.

Note that not some things on this list might already be made.  Inversely, there might be things that were inserted as placeholder functions (like show_message) and aren't on this list.
Title: Re: NEEDED FUNCTION LIST
Post by: Fede-lasse on December 06, 2010, 03:51:27 am
Thanks for including the arguments, unlike Josh, who only keeps the argument number. *loud sigh that can heard across the hall*
Title: Re: NEEDED FUNCTION LIST
Post by: TheExDeus on December 06, 2010, 09:41:57 am
Quote
Note that not some things on this list might already be made.
Yeah, all text and sprite drawing functions are done. And many of thous functions can be made quite easily. When I finish my curve thing (which is not in GM, so the list is bigger than the GM one), then I will check into doing these. Of course others should pitch in too.
Title: Re: NEEDED FUNCTION LIST
Post by: RetroX on December 06, 2010, 03:44:06 pm
This is merely a list of functions.  Even if draw_text is done, others will have to do draw_text_color, etc.

Also, someone please implement c_orange.
Title: Re: NEEDED FUNCTION LIST
Post by: TheExDeus on December 07, 2010, 01:07:44 pm
All draw_text functions are done.
Also, I did implement c_orange for the curve example, but I haven't had time to merge any of this. I am quite new to this rev thing, and so I don't want to break anything.
Title: Re: NEEDED FUNCTION LIST
Post by: IsmAvatar on December 07, 2010, 01:29:04 pm
Graphics_Systems/OpenGL(ES)?/GMcolors.h:

#define c_orange    33023

Graphics_Systems/OpenGL(ES)?/GScolors.h (inside the enum):

c_orange  = 0x0080FF,



Implemented in r542
Title: Re: NEEDED FUNCTION LIST
Post by: Josh @ Dreamland on December 07, 2010, 03:22:17 pm
Let me reiterate (again) that I have no idea why those damn GM*.h headers are still in there. I wrote most of them when I was fourteen. It's time to remove them.

I deleted them years ago and they have since magically resurfaced (Thank you subversion). And as you can see, they're spawning now, and it's kind of obnoxious.
Title: Re: NEEDED FUNCTION LIST
Post by: IsmAvatar on December 07, 2010, 04:10:11 pm
Deleting them from C::B doesn't delete them from your filesystem. Also, not sure how good your svn client is at picking up deleted files and marking them for `svn delete`. At any rate, feel free to go through and `svn delete` them by hand. That should stop them from coming back. After you're done deleting, don't forget to `svn commit -m "Deleted old stuff"`
Title: Re: NEEDED FUNCTION LIST
Post by: TheExDeus on December 07, 2010, 05:09:56 pm
Quote
Let me reiterate (again) that I have no idea why those damn GM*.h headers are still in there. I wrote most of them when I was fourteen. It's time to remove them.
Yeah, I hate them too. I wanted to ask you about that but I am sure I already did in the past. Basically, Enigma needs some cleanup. Lots of useless files should be removed, including the GM* ones.
Title: Re: NEEDED FUNCTION LIST
Post by: RetroX on December 07, 2010, 07:32:54 pm
You should rename everything.  Folders names like "Ism's Concoction" are horrible.
Title: Re: NEEDED FUNCTION LIST
Post by: Josh @ Dreamland on December 07, 2010, 08:43:15 pm
That folder's TBR. But I was considering renaming Platforms... I'm still not positive about that layout.
We do need a new directory called "Widgets"... I've not decided how to link that up with GL/DX....
Title: Re: NEEDED FUNCTION LIST
Post by: TheExDeus on December 10, 2010, 02:37:46 pm
What did you use to match up thous two lists?
I have added the missing shape drawing functions, as well as adding some sprite functions to the header. So they will show up in the list now. Also, as I said, all draw_text functions are done. Its just that ENIGMA doesn't load font texture from LGM right now, and so until that is done they will not be added (at least Josh said so). So lets wait.

I will go trough the list and see what I can add.
Title: Re: NEEDED FUNCTION LIST
Post by: RetroX on December 10, 2010, 03:35:39 pm
What did you use to match up thous two lists?
Code: [Select]
#!/bin/bash
enigma=`cat enig | sort -u`
gm=`cat gm | sed '/^\/\//d' | sed '/^[[:space:]]*$/d' | sort -u`
while [[ "$gm" != "" ]]; do
  current=`echo "$gm" | sed '2,$d'`
  currentcheck=`echo "$current" | sed 's/[*#]$//' | sed 's/(.*)$//' | sed 's/\[.*\]$//'`
  if [[ `echo "$enigma" | grep "^$currentcheck"` == "" ]]; then
    echo "$current"
  fi
  gm=`echo "$gm" | sed '1d'`
done

enig being a copypaste of the keyword lists, while gm being fnames from GM
Title: Re: NEEDED FUNCTION LIST
Post by: TheExDeus on December 10, 2010, 05:14:00 pm
Damn, I don't have Linux. I could use cygwin, but I had problems with it before, so no thanks.
Title: Re: NEEDED FUNCTION LIST
Post by: RetroX on December 10, 2010, 07:07:01 pm
Damn, I don't have Linux. I could use cygwin, but I had problems with it before, so no thanks.
http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mingw-get-inst/

Install MSYS and you can run this script in it. :D

Just put it into a file and run script > list to make a text file with the list contents.
Title: Re: NEEDED FUNCTION LIST
Post by: kkg on December 11, 2010, 11:34:25 am
Was trying out a quick example with a DLL

turns out you have external_define and external_call, but no external_free? :P

edit: if i have any time tomorrow i'll quickly update the list for you Retro
Title: Re: NEEDED FUNCTION LIST
Post by: kkg on December 15, 2010, 08:16:11 am
Here you are: http://dl.dropbox.com/u/8555347/enigma-todo.txt
Not too much different to Retro's one, but yeah it's updated. If you want, I can continuously update this. Considering I don't do much else to help the project :P
Except write total fucking bullshit.

EDIT: This document refers to r563
Title: Re: NEEDED FUNCTION LIST
Post by: RetroX on December 15, 2010, 08:38:23 pm
Anyone can update it when they want.  But thanks.

Did you use the script that I wrote or did you just take out already implemented functions?
Title: Re: NEEDED FUNCTION LIST
Post by: kkg on December 15, 2010, 11:48:04 pm
Yeah I just took out the already implemented functions.