But that not run ; please help me how to do that correctly case i need it in my project ; the latest parameter is a pointer and can,t know how to do that ; Thanks
I was playing around with an engine, and I created a texture class as such. I believe that the OpenGLTexture2D function can handle various file formats.
using System;
using System.IO;
using System.Drawing;
using CsGL.OpenGL;
namespace Sage
{
///
/// Summary description for Texture.
///
public class Texture
{
private OpenGLTexture2D texture;
public Texture(string filename)
{
texture = new OpenGLTexture2D(filename);
}
public void Bind()
{
texture.Bind();
}