[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Clone/game request: Chain of Command



On Fri, 16 Apr 2004, Jon Peirce wrote:

>
>> Yes, I've done that, as at that time it was the only way to get textures
>> loaded. Talk about an inefficient of doing it...
>>
>> And you still have to fight with cameras and viewports to get the 2D
>> graphics shown, and getting something look correct (1:1 pixel content wrt
>> the original data) can be tricky.
>>
>>
>As with most programming it's only hard to *find out* how to do it. Not
>hard actually to do.
>e.g. to draw with 1:1 pixel content (using a numeric array as input
>rather than the inefficient texture step) its very simple:
>
>glRasterPos2i(xPos,yPos)#set position to start
>glDrawPixelsub(GL_RGB, numArray)

You do know how slow this is, right?

-- 
        Five exclamation marks, the sure sign of an insane mind.
                                              -- Terry Pratchett, Reaper Man