What is the preferred way to show large images in OpenGL

后端 未结 2 455
时光说笑
时光说笑 2021-02-03 14:00

I\'ve had this problem a couple of times. Let\'s say I want to display a splash-screen or something in an OpenGL context (or DirectX for that matter, it\'s more of a conceptual

2条回答
  •  天涯浪人
    2021-02-03 14:45

    I don't think there is a built-in opengl function, but you might find a library (or write the function yourself) to break the image down into smaller chunks and then print to screen the smaller chunks (128x128 tiles or similar).

    I had problem with this using Slick2D for a Java game. You can check out their "BigImage" class for ideas here.

提交回复
热议问题