Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13

Thread: [WIP] BreadBoard

  
  1. #11
    MTN's Avatar
    MTN
    MTN is offline Programmer -Hacks Enthusiast
    Join Date
    Jan 2009
    Location
    Unknown
    Posts
    502
    Rep Power
    10

    Default

    I dont know why changing it worked , it doesnt do anything ... Thanks tho makefiles always make my brain fart
    i dont know whats been going on in the psp scene but that signing thing is just a slap in the face

    i've written most of the classes ,i have a question . i have a template linked list class and the breadboard class :
    Breadboard.h :
    Code:
    ...
    class Breadboard
    {
        LinkedList<Pin> pins;
        LinkedList<Wire> wires;
    ...
    i should add something to the .cpp file but i can't remember what it is it was something about assigning memory to the list


    -"OOh! sceGuClear?! Sounds exciting! I wanna stick my dick in it!" Stinkee2
    -DO NOT choose "install alongside other OS" when installing ubuntu 10.04 or higher

  2. #12
    hardhat is offline Programmer -Hacks Enthusiast
    Join Date
    May 2007
    Posts
    544
    Rep Power
    65

    Default

    I'm not familiar with your linked list class. It is quite possible that it does all of the memory allocation itself.

    Personally when I want a linked list, normally I use std::deque, myself.

    My 2D homebrew | My 3D homebrew with Team Sushi. | My YouTube channel. | My Twitter
    Spoiler:

    hardhat: F1 == help on Windows
    J697: oh I have never used the help, so I wouldnt know
    hardhat: so that's why you're always lost. :-P

  3. #13
    MTN's Avatar
    MTN
    MTN is offline Programmer -Hacks Enthusiast
    Join Date
    Jan 2009
    Location
    Unknown
    Posts
    502
    Rep Power
    10

    Default

    Its something i did for class and turned out quite useful ... Nevermind , it works apparently
    lol i'm stuck at drawing stuff :
    Spoiler:
    Code:
    //main :
    ...
    while(!done)
    	{
    		oslStartDrawing();
    		oslReadKeys();
    		if(state==S_MENU)
    		{
    			DrawMenu();
    			ControlMenu();
    		}
    		if(state==S_NCIR)
    		{
    			DrawNew();
    		}
    		else if(state==S_LS){}
    		else if(state==S_NCIR){}
    		oslEndDrawing();
    		oslSyncFrame();
    	}	
    void DrawMenu()
    {
    	oslDrawImage(bkg);
    	intraFontPrint(menu_font,40,140,"New Circuit");
    	intraFontPrint(menu_font,40,190,"Save|Load");
    	intraFontPrint(menu_font,40,240,"Exit");
    	if(menu_index==1)
    		intraFontPrint(menu_font,30,140,">");
    	else if(menu_index==2)
    		intraFontPrint(menu_font,30,190,">");
    	else if(menu_index==3)
    		intraFontPrint(menu_font,30,240,">");
    }
    ...
    void DrawNew()
    {
    	oslDrawFillRect(0,0,480,272,BLACK);
    	for(int i=0;i<40;i++)
    	{
    		oslDrawFillRect((i*6) +10,10,(i*6) +18,18,BLUE);
    	}
    }

    i tried everything ... no matter what it wont draw blue rects . when i replace oslDrawImage(bkg); with oslDrawFillRect(0,0,480,272,BLACK); it leaves marks on screen when i move the cursor . if i add a oslClearScreen to the end the whole screen goes black seriously wtf ?

    -"OOh! sceGuClear?! Sounds exciting! I wanna stick my dick in it!" Stinkee2
    -DO NOT choose "install alongside other OS" when installing ubuntu 10.04 or higher

Page 2 of 2 FirstFirst 1 2

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •