I need some tips both visually and in detailed explained. When designing a game engine of some sort. (and I am considering that it is difficult to implement one) How do engines allow you to create different kinds of geometry such as a line, cube, rectangle, triangle, and spheres without telling the vertices of these basic geometry? What are different methodologies to approach this sort of thing?For some more context the idea that I was hoping would be you would have some function like the following below. Where you wanted to draw those specific geometry, and what are different approaches to instantiate these different kinds of geometry when developing an engine to automate this process?BeginScene();DrawCube(pos, size, color); DrawSphere(pos, size, color); EndScene();

CMPTR
3rd Edition
ISBN:9781337681872
Author:PINARD
Publisher:PINARD
Chapter18: Maintaining And Querying A Database
Section: Chapter Questions
Problem 11QY
icon
Related questions
Question

I need some tips both visually and in detailed explained. When designing a game engine of some sort. (and I am considering that it is difficult to implement one) How do engines allow you to create different kinds of geometry such as a line, cube, rectangle, triangle, and spheres without telling the vertices of these basic geometry? What are different methodologies to approach this sort of thing?

For some more context the idea that I was hoping would be you would have some function like the following below. Where you wanted to draw those specific geometry, and what are different approaches to instantiate these different kinds of geometry when developing an engine to automate this process?

BeginScene();
DrawCube(pos, size, color);

DrawSphere(pos, size, color);

EndScene();

Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Top down approach design
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage