[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rendering grayscale on opengl using nsbitmaprep
From: |
Fred Kiefer |
Subject: |
Re: Rendering grayscale on opengl using nsbitmaprep |
Date: |
Wed, 23 Feb 2011 10:52:09 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.16) Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11 |
Thank you, with that explanation I finally understand where you trying
to get to. And the code that I pointed you to should work quite well for
that purpose. My feeling is still that your code that is calling this
has a problem. If you want you can send me the code off line and I have
a quick look at what may go wrong here.
Fred
Am 23.02.2011 05:21, schrieb Indie AN:
> Ok. Let me clear it for once. I am trying to render image using
> opengl, that we normally do for games. Opengl do not speak nsimage.
> They speak textures . All i needed is magic piece of code that
> converts every image to raw rbga or rbg data. In mac they do using
> coreimage framework. But its ok. I can live happily without
> gray scale images. White image is sufficient. Thanks to everybodies
> time.
>
> On 2/16/11, Fred Kiefer <fredkiefer@gmx.de> wrote:
>> Sorry, I still don't understand your problem. Why are you converting the
>> image? The standard code should work fine in displaying it. Actually the
>> code I pointed you to is used for that.
>> From your screen shot I would expect that your drawing code uses the
>> wrong sizes. To verify this it would help if you sent a bit more of your
>> code.
>>
>> Fred
>>
>> PS: For drawing pre-multiplied images get used. Better convert in to
>> that format. But this is completely unrelated to your problem.
- Rendering grayscale on opengl using nsbitmaprep, indieAN, 2011/02/11
- Re: Rendering grayscale on opengl using nsbitmaprep, Gregory Casamento, 2011/02/12
- Re: Rendering grayscale on opengl using nsbitmaprep, Indie AN, 2011/02/14
- Message not available
- Re: Rendering grayscale on opengl using nsbitmaprep, indieAN, 2011/02/16
- Re: Rendering grayscale on opengl using nsbitmaprep, Fred Kiefer, 2011/02/15
- Re: Rendering grayscale on opengl using nsbitmaprep, Indie AN, 2011/02/22
- Re: Rendering grayscale on opengl using nsbitmaprep,
Fred Kiefer <=
- Re: Rendering grayscale on opengl using nsbitmaprep, Indie AN, 2011/02/23
- Re: Rendering grayscale on opengl using nsbitmaprep, AN Indie, 2011/02/25
- Re: Rendering grayscale on opengl using nsbitmaprep, Fred Kiefer, 2011/02/25
- Re: Rendering grayscale on opengl using nsbitmaprep, AN Indie, 2011/02/27
- Re: Rendering grayscale on opengl using nsbitmaprep, Fred Kiefer, 2011/02/28
- Re: Rendering grayscale on opengl using nsbitmaprep, Indie AN, 2011/02/23