Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. openGL can read an bmf picture or another picture ????

openGL can read an bmf picture or another picture ????

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsgame-devtutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    a04 lqd
    wrote on last edited by
    #1

    if it can, show me how to use, please !!!

    C 1 Reply Last reply
    0
    • A a04 lqd

      if it can, show me how to use, please !!!

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      No, OpenGL cannot load any images on its own, you will need to use an external library for that (for instance DevIL or FreeImage or maybe GLUT). But I don't know if these libraries support bmf because I never heard of that format.

      Cédric Moonen Software developer
      Charting control [v2.0] OpenGL game tutorial in C++

      A 1 Reply Last reply
      0
      • C Cedric Moonen

        No, OpenGL cannot load any images on its own, you will need to use an external library for that (for instance DevIL or FreeImage or maybe GLUT). But I don't know if these libraries support bmf because I never heard of that format.

        Cédric Moonen Software developer
        Charting control [v2.0] OpenGL game tutorial in C++

        A Offline
        A Offline
        a04 lqd
        wrote on last edited by
        #3

        sorry , it is my mistake -> bmp. i need to load a bmp picture by openGL ,then i can use mouse in openGL to draw a point in that pic.

        C 1 Reply Last reply
        0
        • A a04 lqd

          sorry , it is my mistake -> bmp. i need to load a bmp picture by openGL ,then i can use mouse in openGL to draw a point in that pic.

          C Offline
          C Offline
          Cedric Moonen
          wrote on last edited by
          #4

          Then you can use DevIL or FreeImage (I think even GLUT is able to load bmp files but I'm not sure at all, I never used it). Did you look at these libraries ? If you are interested, you can also look at my second tutorial about OpenGL: it discusses resource management but it is probably it bit more higher level than what you are looking for.

          Cédric Moonen Software developer
          Charting control [v2.0] OpenGL game tutorial in C++

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups