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. Graphics
  4. please

please

Scheduled Pinned Locked Moved Graphics
graphicsgame-devhelp
5 Posts 4 Posters 2 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
    Archy_Yu
    wrote on last edited by
    #1

    The program in OpenGL with Texture just didnot work in my cimputer,which work well in others' computer. where is the crux,any help is appreciated. The code is in the former message.

    R T 2 Replies Last reply
    0
    • A Archy_Yu

      The program in OpenGL with Texture just didnot work in my cimputer,which work well in others' computer. where is the crux,any help is appreciated. The code is in the former message.

      R Offline
      R Offline
      RichardM1
      wrote on last edited by
      #2

      I can't give a good answer for this, but I can comiserate: If I use a rectangle to exclude an area from a Graphics drawing area in C#, on some machines it also excludes the pixel before and the pixel after the intended exclude area, but only for the horizontal axis. Same video chip set on all machines, various drivers. I just worked around it, but what a pain.

      Silver member by constant and unflinching longevity.

      1 Reply Last reply
      0
      • A Archy_Yu

        The program in OpenGL with Texture just didnot work in my cimputer,which work well in others' computer. where is the crux,any help is appreciated. The code is in the former message.

        T Offline
        T Offline
        Tim Craig
        wrote on last edited by
        #3

        From your code, it looked like the program gets the texture from a separate file. Did you copy the texture file to your computer along with the .exe?

        You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.

        A 1 Reply Last reply
        0
        • T Tim Craig

          From your code, it looked like the program gets the texture from a separate file. Did you copy the texture file to your computer along with the .exe?

          You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.

          A Offline
          A Offline
          Archy_Yu
          wrote on last edited by
          #4

          First! Thanks for you help! then, how could i copy the texture file to my compter along with the .exe! I could not understand you say.

          L 1 Reply Last reply
          0
          • A Archy_Yu

            First! Thanks for you help! then, how could i copy the texture file to my compter along with the .exe! I could not understand you say.

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            Hi, it looks like pFile = fopen("桌面.bmp", "rb"); is opening an image file; so you need to have that present next to your EXE file. one way is to copy the files manually (you probably only copied the EXE so far); another way (more complex) would be to create an installer; and finally you could turn the BMP file into a resource, that would then be stored inside the EXE (that requires some code changes to use it). :)

            Luc Pattyn


            I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


            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