0
\$\begingroup\$

Is it possible to add one texture to another texture, at specific coordinates? Like if I want to add a small texture(16x16) to big texture (1368 x 768) with coordinates ( 100, 100) so the small texture goes to specific coordinates (100, 100 ).

\$\endgroup\$

closed as unclear what you're asking by Anko, Josh Feb 3 '14 at 16:24

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • \$\begingroup\$ Other than that it involves textures, coordinates, OpenGL and C++, I don't understand what you're asking. \$\endgroup\$ – Anko Feb 3 '14 at 12:06
  • \$\begingroup\$ I got it. If I split the background texture to 16x16 quads I just need to edit one quad (add other texture to it ) and it is done. \$\endgroup\$ – Alker Feb 3 '14 at 12:11
  • \$\begingroup\$ I still don't get it, but I'm glad you've solved your problem. :D \$\endgroup\$ – Anko Feb 3 '14 at 12:12
  • \$\begingroup\$ So I wanted put other texture to texture ( blend them together) with exact coordinates inside the other texture. Like I wanna put 16x16 texture to 100,100 etc. You got it now ? \$\endgroup\$ – Alker Feb 3 '14 at 12:13
  • 1
    \$\begingroup\$ Actually this is a cross post from SO which is frowned upon. \$\endgroup\$ – concept3d Feb 3 '14 at 12:29
0
\$\begingroup\$

Yes, glTexSubImage may be what you are looking for.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.