Original Post
[color=#282828][font=helvetica, arial, sans-serif]For anyone who knows how to use C++, OpenGL and GLUT if possible.[/font]
[color=#000000][font=helvetica, arial, sans-serif]I'm having problems trying to load textures in an OpenGL GLUT project using classes. Here's some code that includes the texturing stuff:[/font]
[color=#000000][font=helvetica, arial, sans-serif]Declaring a Textured Model from a subclass of a model class.[/font]
[color=#000000][font=helvetica, arial, sans-serif]TextureModel * title = new TextureModel("Box.obj", "title.raw");[/font]
[color=#000000][font=helvetica, arial, sans-serif]Constructor method of TextureModel subclass:[/font]
[font=arial,helvetica,sans-serif][color=#2B91AF][background=transparent]TextureModel[/background][color=#282828][background=transparent]([/background][color=#282828][background=transparent]string fName[/background][color=#282828][background=transparent],[/background][color=#282828][background=transparent] string tName[/background][color=#282828][background=transparent])[/background][color=#282828][background=transparent] [/background][color=#282828][background=transparent]:[/background][color=#282828][background=transparent] [/background][color=#2B91AF][background=transparent]Model[/background][color=#282828][background=transparent]([/background][color=#282828][background=transparent]fName[/background][color=#282828][background=transparent]),[/background][color=#282828][background=transparent] textureFile[/background][color=#282828][background=transparent]([/background][color=#282828][background=transparent]tName[/background][color=#282828][background=transparent])[/background]
[color=#000000][font=helvetica, arial, sans-serif]I'm having problems trying to load textures in an OpenGL GLUT project using classes. Here's some code that includes the texturing stuff:[/font]
[color=#000000][font=helvetica, arial, sans-serif]Declaring a Textured Model from a subclass of a model class.[/font]
[color=#000000][font=helvetica, arial, sans-serif]TextureModel * title = new TextureModel("Box.obj", "title.raw");[/font]
[color=#000000][font=helvetica, arial, sans-serif]Constructor method of TextureModel subclass:[/font]