NickJack's picture

VSC#, OpenTK: help with loading 1D texture file

hi

i am thinking of reading a raw or png 1D texture file into Opentk so that i can use TexCoord1() to get color for my fractal program.

i know how to use it to do it in C++. i am new to C#, and i am new to all the function call's name.

even in OpenTK, i know how to load a texture2D image, but not 1D. :(

apparently, all the examples i got from googling deal with texture2D, very frustrating.

any help will be appreciated.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Inertia's picture


OpenTK includes an example