SDL_RWops, GLEnums (two issues)
I am trying to convert a simple open-source C++ SDL program to C# using Tao, but am unable to use SDL_RWops for some reason. I am still new to SDL and OpenGL so there may be a reason for it (or is Tao simply an incomplete product)? Here is the example in C++.
void ReadFromFile(char* filename)
{
SDL_Surface* image;
SDL_RWops* tex;
tex = SDL_RWFromFile(filename, "rb");
image = IMG_Load_RW(textureFile, 1);
SetWidth(image->w);
}
My second issue is that many openGL functions like GlEnableClientState are designed to take only a very small subset of the GLEnums, but are lumped together with nearly every possible Enum value (and function) for OpenGL. This renders Intellisense ineffective and steepens the learning curve for those of us trying to use OpenGL for the first time.
I'd be happy to take a shot at fixing this, but from the looks of it maybe everyone else likes the program the way it is. I'm interested in hearing opinions.

I don't know SDL, so can't
I don't know SDL, so can't help you with the first issue, about the second, it is by design. Tao tries to stay as close as possible to the native OpenGL api. If you'd like a more OOP approach, try OpenTK, which provides a more structured api.
----------------------
Download Tao svn snapshot build
Experimental Tao rpms (OpenSUSE Build Service)
Thank you very much! I
Thank you very much! I didn't even know this existed until now. I will look into this.