Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Anyone interested in a possible ugl32?
#11
That will never happen, no chance of that Smile
If the crap i did in qb doesn't impress, then nothing will.

Sterling: Not quite, the routines aren't dynamically linked. So there are no function pointers in the actual class structure.
oship me and i will give you lots of guurrls and beeea
Reply
#12
Bleh, who cares about impressing people. The fact that UGL not only raised the standards for game design plus was the first clear-cut sign of QB's and MSDOS's age in general is proof enough that you did something great. Let's face it...when UGL came out, it was so advanced that many people dropped QB in favor of Windows-based programming where they could come close to UGL's capabilities. While this might have hurt "QB" in general, it greatly helped many individuals. And now with FB being "the QB for Windows", people could finally be able to do all the things in UGL that they couldn't do in QB. So I say go for it man. Big Grin
I'd knock on wood, but my desk is particle board.
Reply
#13
Go for it Blitz. ;*)

So for Tri's you'd do a d3d/ogl wrapper?
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#14
Oh yeah, this is the year of basic!

Quote:Heh. Maybe then you'll get some more respect from the guys around here Smile

I don't know about anyone else, but i have high regards for Blitz. What he did with UGL and Quake Renderer impressed the hell outta me.
Jumping Jahoolipers!
Reply
#15
Don't do it, it's a crap idea.

Screw** these guys, think about your life.

** I mean that in the nicest possible way Smile
Reply
#16
Seems like there is some interest.
Well rel, unfortuneatly, hardware design is somewhat different then ugls free surfaces. Hardware needs to have textures in video memory, thus they have to be uploaded to the card. And that means that they can't be manipulated after that unless uploaded again. It wouldn't be very effecient at all to try to integrate that into ugl. =|
oship me and i will give you lots of guurrls and beeea
Reply
#17
Go for it =)
Reply
#18
My card has an option to use (n)MB standard ram for extended video memory. Is it possible to do something similar to that?
Reply
#19
Nothing of particular, but i wanted to show you guys how simple µGL32 is. To get this [Image: ugl32_trif.jpg]

This is all the code that was needed. It really just 8-9 lines if you remove all the comments and whitespace.

Code:
//
    // Init µGL32
    //
    if ( uglInit() == false )
    {
        MessageBox( NULL, "0x0000, uglInit failed...", "Error", MB_ICONERROR );
        return 0;
    }

    //
    // Set video mode
    //
    pVideoDC = uglSetVideoMode( 8, 640, 480, 0 );
    if ( pVideoDC == false )
    {
        MessageBox( NULL, "0x0001, uglSetVideoMode failed...", "Error", MB_ICONERROR );
        return 0;
    }


      

    while ( true )
    {
        //
        // Clear screen
        //
        pVideoDC->Clear( 0 );

        //
        // Rotate and scale triangle
        //
        for ( i = 0; i < 3; i++ )
        {  
            flt64 x = cos( ang )*vtx[i].x - sin( ang )*vtx[i].y;
            flt64 y = cos( ang )*vtx[i].y + sin( ang )*vtx[i].x;

            ovtx[i].x = x*128.0f*3 + 320.0f;
            ovtx[i].y = y*128.0f*3 + 240.0f;
        }    
    
        //
        // Draw triangle
        //        
        pVideoDC->TriF( ovtx, 185 );        
        

        //
        // Update screen
        //
        pVideoDC->Flip();

        
        
        ang += 0.0005f;
        if ( ang > 3.141592653f*2.0f )
            ang -= 3.141592653f*2.0f;
    }
oship me and i will give you lots of guurrls and beeea
Reply
#20
omg omg, you posted c code, SPANK HIM!!!
quote="NecrosIhsan"]
[Image: yagl1.png]
[/quote]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)