Question

I have a photo Dimensions 468x312 need to do it as a texture in a regular...

I have a photo Dimensions 468x312 need to do it as a texture in a regular rectangle using OpenGL C++ can I have the code for this please

0 0
Add a comment Improve this question Transcribed image text
Answer #1

This is such a common requirement for OpenGL that they have provided the glRect that does exactly this

Microsoft have provided saveral version of this function[^] that take different data types to specify the bound of the rectangle.

Add a comment
Know the answer?
Add Answer to:
I have a photo Dimensions 468x312 need to do it as a texture in a regular...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I am needing to code a coffee mug in OpenGL using c++. I have found the coding for a tea kettle b...

    I am needing to code a coffee mug in OpenGL using c++. I have found the coding for a tea kettle but we have been told we cannot use a tea kettle. I have attached a photo for reference. Thank you for any help you can provide!

  • Hello everyone I need to do a code that check if two rectangles are overlapping in...

    Hello everyone I need to do a code that check if two rectangles are overlapping in Java. So I have Rectangle 1 = x,y,width, depth. And Rectangle 2 = x,y,width,depth So how do I calculate that? Thank you,

  • Given: About a regular singular point x = 0, I have solved for and , I...

    Given: About a regular singular point x = 0, I have solved for and , I have also solved for Therefore a.) I need to find the first three non-zero terms of the two linearly independent solutions using the GENERAL RECURRENCE FORMULA: Where NOT BY PLUGGING THE SERIES SOLUTION INTO THE DIFFERENTIAL EQUATION. Please show ALL your steps when using the formula, every value you plug in and how to do it for the first 3 terms ()

  • Hi I need some help with this I just need the code and the collection name...

    Hi I need some help with this I just need the code and the collection name is research only the code I dont need any screenshots of the output. it should be for companies.json using the research collection as like this db.research.aggregate({}) but I don't know how to do the rest. This is the database but it is hard to paste it all so I will paste some and it should be create. Please I need this to be done...

  • I need help with this c++ code. This is my first computer science course. I have...

    I need help with this c++ code. This is my first computer science course. I have not learned arrays but I am learning vectors. I am also required to write this code without do loops or any other form of advanced coding technique. Please help me figure out this code using the basic coding techniques that you would find in an introduction to cs. Thank you for your help, I don't even know where to start :)

  • I need to create the following struct in C++ id (integer) - identifies the element texture...

    I need to create the following struct in C++ id (integer) - identifies the element texture (string) - specifies the appearance of the element (rabbit, fox, etc.) color (integer) health (double) Dimensions – length, width, and height. All three values are doubles (these variables will be also stored in struct "dimension" ) Hostile (Boolean) – determines if the animal is hostile (1) or peaceful (0) I need a function (outside the struct) that will read the data and inport from...

  • The length and width of a rectangle must have a sum of 30. Find the dimensions...

    The length and width of a rectangle must have a sum of 30. Find the dimensions of the rectangle that will have the maximum area. [hint: let x and 30-x be the length and width] the area can be described by the function f(x)=x(30-x).]

  • i need to do Gauss seidel method in python code please. i need the code copy...

    i need to do Gauss seidel method in python code please. i need the code copy paste . thanks in advance.

  • I need part 2. I have attached part 1 in the photo as well. Thanks ELEC...

    I need part 2. I have attached part 1 in the photo as well. Thanks ELEC ENG 2C15- Introduction to Electrical Engineering Page 27 Laboratory Examples and Experiments ii. Given that Vsource 4V, Ri - 2202, R2 R3 = Rs 1k2, R4 = R6= R7- 10k, and Ro 24.7k2, calculate the currents using your matrix from part i. Page 26 ELECENG 2CI5-Introduction to Electrical Engineering Laboratory Examples and Experiments Experiment Given the following circuit, use mesh analysis to generate a...

  • I need help in this code. Please do it perfectly and 100% correct Part IV 1....

    I need help in this code. Please do it perfectly and 100% correct Part IV 1. For the following C snippet, write an equivalent code using a for-loop instead of while-loop (10 pts sum - 0; sum2 = 0; i = 0; while (i < 100) { sum - sum + i; sum2 - sun2 + 1. i;

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT