Results 1 to 4 of 4

Thread: textures loading in c++

  1. #1
    Member Newbie
    Join Date
    Sep 2002
    Posts
    40

    textures loading in c++

    I think I am back to square one.
    First, It would really help if someone could forward me an image loading file for c++ programs rather than c programs. Else there seems to be tons of complications.

    I have my program coded in c++, and all i need to do is load texture to the ground.
    Everytime I download some file that can upload texture..its in c, and gives me link errors.

    I will really appreciate some help in this regard.
    Lara

  2. #2
    Junior Member Newbie
    Join Date
    Nov 2002
    Posts
    20

    Re: textures loading in c++

    I just added a function used in a tutorial at gametutorials.com into my program and it works great. here is the link: (the first texture mapping lesson)
    http://www.gametutorials.com/Tutoria...OpenGL_Pg2.htm


    the function is called "CreateTexture"

  3. #3
    Member Newbie
    Join Date
    Sep 2002
    Posts
    40

    Re: textures loading in c++

    did you add the files Init.cpp and main.h in your program.
    And just used createTexture in your program?

  4. #4
    Junior Member Newbie
    Join Date
    Nov 2002
    Posts
    20

    Re: textures loading in c++

    Im using VC++.NET and already had my program made in Doc/View format. I just said "make new function" and made the creattecture function in my document class, making sure to also specify the variables too. dont have to include the whole source file, just make the function yourself.

Similar Threads

  1. Image Loading Library for loading image textures
    By jitendra2896 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-03-2017, 12:13 AM
  2. loading tga textures
    By Riuzaki90 in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 02-20-2012, 10:16 AM
  3. loading textures
    By xorek in forum OpenGL: User Software
    Replies: 0
    Last Post: 06-14-2004, 03:40 AM
  4. Loading DDS textures
    By d-slut in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 03-20-2003, 02:41 PM
  5. 3ds loading and textures...
    By CyBBe in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 09-17-2000, 09:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean