Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Munchor

Pages: 1 ... 178 179 [180] 181 182 ... 424
2686
Axe / Re: Efficient 12x12 sprite routines
« on: March 26, 2011, 07:23:25 am »
I could probably write a crude routine in assembly, but as I said I don't know how to access data defined within the Axe program.

There's an example on how to use Axioms in Axe 0.5.0's download and I guess you can find some explanations there...

2687
I'm sure TC01 is glad. ;)

Woooops, I'm so sorry, I meant Darl, I guess TC01 was in the IRC I was confused.

2688
TI-Nspire / Re: Nspire Video Player
« on: March 26, 2011, 07:21:27 am »
We have a nspire forge where cool nspire and projects are hosted. we have svn/git and trac (bugs, downloads, etc).

would you like a dedicated space?

just visit: http://nspforge.unsads.com

Oh yeah, the video player could be there too :D

2689
Welcome ZippyDee, I like your games with words :P

2690
Une des les meilleurs qualities de Axe est quil fait des BACKUPS de nôtre code :D

2691
Other Calculators / Re: Tl-Nspire OS 3.0 coming today?
« on: March 26, 2011, 07:17:37 am »
Yeah I see no changes. They were probably recoding some stuff as some pages that stopped working now works.

Yap, nothing new here.

2692
Thanks a lot for this. It makes learning from (public) source code much easier on the eyes.
And it works awesome in gedit in Ubuntu 10.10

The gedit version should work with anything that uses gtksourceview (all versions of gedit and Anjuta, among others) :)

And if anyone has any bugs, post a report at http://clrhome.co.cc/projects/bugs/ (testing out my new bug report system).

In the bugs page, I got a PHP error, you'd better watch out, I have your FTP name now.

2693
Math and Science / Re: Pitagoric Triplet
« on: March 26, 2011, 07:14:25 am »
I like what Zeda did, at least, I get most of it :)

2694
Axe / Re: Efficient 12x12 sprite routines
« on: March 26, 2011, 07:13:54 am »
I'm working on a game in which I want to use 12x12 sprites, and I would REEEEEEEEEEALLY rather not have 48 wasted bits for every sprite, so I'm looking for an efficient method of displaying 12x12 sprites. If I knew how to access data from an Axe program, I'd just figure out a 12x12 routine using my small knowledge of ASM. Sadly, I don't know how to do that, so I can't. :P

Any suggestions?

Thanks!
-Zippy Dee

Edit: I know how I'd write one in Axe, I just don't know if it would be very optimal, so I guess that's really what I'm looking for: either an assembly routine or an optimized axe routine.

If you know how to make it using Assembly, I suggest Axioms, in case you don't know what they are, they are subroutines coded in pure Assembly but that can be used in Axe.

2695
TI Z80 / Re: Motherload
« on: March 26, 2011, 07:12:58 am »
This looks very great Sir. If you used 3 levels grayscale I would have suggested to simply freeze the grayscale during vertical/horizontal scrolling and have it work when not scrolling or when scrolling diagonaly, but this wouldn't work at 4 level I think...

I agree. Or maybe 3 levels at times and 4 levels at other times.

2696
Computer Programming / Installing wxWidgets and compiling software
« on: March 26, 2011, 07:10:42 am »
Last night, I installed wxWidgets 2.9.1 on my Ubuntu 10.04. It all went well, and it works:

Code: [Select]
david@DavidPC:~$ wx-config --version
2.9.1
david@DavidPC:~$

It was installed. Now I want to make my first GUI program, and used this code:

Code: [Select]
/*
 * hworld.cpp
 */

#include "wx/wx.h"

class MyApp: public wxApp
{
    virtual bool OnInit();
};

class MyFrame: public wxFrame
{
public:

    MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size);

    void OnQuit(wxCommandEvent& event);
    void OnAbout(wxCommandEvent& event);

    DECLARE_EVENT_TABLE()
};

enum
{
    ID_Quit = 1,
    ID_About,
};

BEGIN_EVENT_TABLE(MyFrame, wxFrame)
    EVT_MENU(ID_Quit, MyFrame::OnQuit)
    EVT_MENU(ID_About, MyFrame::OnAbout)
END_EVENT_TABLE()

IMPLEMENT_APP(MyApp)

bool MyApp::OnInit()
{
    MyFrame *frame = new MyFrame( _("Hello World"), wxPoint(50, 50),
                                  wxSize(450,340) );
    frame->Show(true);
    SetTopWindow(frame);
    return true;
}

MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
: wxFrame( NULL, -1, title, pos, size )
{
    wxMenu *menuFile = new wxMenu;

    menuFile->Append( ID_About, _("&About...") );
    menuFile->AppendSeparator();
    menuFile->Append( ID_Quit, _("E&xit") );

    wxMenuBar *menuBar = new wxMenuBar;
    menuBar->Append( menuFile, _("&File") );

    SetMenuBar( menuBar );

    CreateStatusBar();
    SetStatusText( _("Welcome to wxWidgets!") );
}

void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
{
    Close(TRUE);
}

void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
{
    wxMessageBox( _("This is a wxWidgets Hello world sample"),
                  _("About Hello World"),
                  wxOK | wxICON_INFORMATION, this);
}

My question being, how to compile it?

When I go to the console and type g++ helloWorld.cpp I get:

Code: [Select]
g++ helloWorldGUI.cpp
helloWorldGUI.cpp:5:20: error: wx/wx.h: Ficheiro ou directoria inexistente
helloWorldGUI.cpp:8: error: expected class-name before ‘{’ token
helloWorldGUI.cpp:13: error: expected class-name before ‘{’ token
helloWorldGUI.cpp:16: error: ISO C++ forbids declaration of ‘wxString’ with no type
helloWorldGUI.cpp:16: error: expected ‘,’ or ‘...’ before ‘&’ token
helloWorldGUI.cpp:18: error: ‘wxCommandEvent’ has not been declared
helloWorldGUI.cpp:19: error: ‘wxCommandEvent’ has not been declared
helloWorldGUI.cpp:21: error: ISO C++ forbids declaration of ‘DECLARE_EVENT_TABLE’ with no type
helloWorldGUI.cpp:22: error: expected ‘;’ before ‘}’ token
helloWorldGUI.cpp:22: error: expected ‘;’ before ‘}’ token
helloWorldGUI.cpp:30: error: ‘wxFrame’ has not been declared
helloWorldGUI.cpp:31: error: expected constructor, destructor, or type conversion before ‘EVT_MENU’
helloWorldGUI.cpp:46: error: ISO C++ forbids declaration of ‘wxString’ with no type
helloWorldGUI.cpp:46: error: expected ‘,’ or ‘...’ before ‘&’ token
helloWorldGUI.cpp: In constructor ‘MyFrame::MyFrame(int)’:
helloWorldGUI.cpp:47: error: class ‘MyFrame’ does not have any field named ‘wxFrame’
helloWorldGUI.cpp:47: error: ‘NULL’ was not declared in this scope
helloWorldGUI.cpp:47: error: ‘title’ was not declared in this scope
helloWorldGUI.cpp:47: error: ‘pos’ was not declared in this scope
helloWorldGUI.cpp:47: error: ‘size’ was not declared in this scope
helloWorldGUI.cpp:49: error: ‘wxMenu’ was not declared in this scope
helloWorldGUI.cpp:49: error: ‘menuFile’ was not declared in this scope
helloWorldGUI.cpp:49: error: expected type-specifier before ‘wxMenu’
helloWorldGUI.cpp:49: error: expected ‘;’ before ‘wxMenu’
helloWorldGUI.cpp:51: error: ‘_’ was not declared in this scope
helloWorldGUI.cpp:55: error: ‘wxMenuBar’ was not declared in this scope
helloWorldGUI.cpp:55: error: ‘menuBar’ was not declared in this scope
helloWorldGUI.cpp:55: error: expected type-specifier before ‘wxMenuBar’
helloWorldGUI.cpp:55: error: expected ‘;’ before ‘wxMenuBar’
helloWorldGUI.cpp:58: error: ‘SetMenuBar’ was not declared in this scope
helloWorldGUI.cpp:60: error: ‘CreateStatusBar’ was not declared in this scope
helloWorldGUI.cpp:61: error: ‘SetStatusText’ was not declared in this scope
helloWorldGUI.cpp: At global scope:
helloWorldGUI.cpp:64: error: variable or field ‘OnQuit’ declared void
helloWorldGUI.cpp:64: error: ‘wxCommandEvent’ was not declared in this scope
helloWorldGUI.cpp:64: error: ‘event’ was not declared in this scope
helloWorldGUI.cpp:64: error: ‘WXUNUSED’ was not declared in this scope
helloWorldGUI.cpp:69: error: variable or field ‘OnAbout’ declared void
helloWorldGUI.cpp:69: error: ‘wxCommandEvent’ was not declared in this scope
helloWorldGUI.cpp:69: error: ‘event’ was not declared in this scope
helloWorldGUI.cpp:69: error: ‘WXUNUSED’ was not declared in this scope
david@DavidPC:~/Documentos/C++$

No idea why though :(

2697
Humour and Jokes / Re: What Zeda looks like...
« on: March 26, 2011, 07:08:03 am »

2698
News / Re: Grayscale chess with AI
« on: March 26, 2011, 07:07:41 am »
It looks like thepenguin is being rated up all over the place here.

2699
TI Z80 / Re: Motherload
« on: March 25, 2011, 09:13:34 pm »
Watching this made me go to Miniclip and play some Flash motherload, enjoyed it.

2700
Humour and Jokes / Re: What Zeda looks like...
« on: March 25, 2011, 08:34:31 pm »
Fixed the 'her', sorry for that.

Pages: 1 ... 178 179 [180] 181 182 ... 424