I want to create something like a game but I am going to use Direct2D and GDI for drawing API.My problem is that I want to separate drawing code from objects. For example lets say I have conduit objects and pumps.Each one might have different color and vector shape. I mean problem here is that drawing a pipe wont be a texure but a series of commands like drawline , drawrectangle etc.The only way I can think of having a Renderer class that would have drawing logic for each one.But in case I want it to be extendable from another developer then in order to add a new object they should extend renderer. My question is since I am not going to use classic game things like sprites,textures etc how can drawing complex vector objects be abstracted? And how can I make it extendable ?
\$\begingroup\$ \$\endgroup\$
5 - The Overflow Blog
-
-
- Featured on Meta
-
-
Related
Hot Network Questions
- Is it theft if a person takes an item they believed was free?
- How to test i.i.d. assumption?
- Why does Lu Xun's 《祝福》use 莱 instead of 菜?
- Domain Name Service (DNS) resolving Content Delivery Network (CDN) name
- Regular pentagram inscribed in a parabola
- Difference between these 2 different ways of extracting files from a zip archive
- Can I delete the Chrome's OptGuideOnDeviceModel safely? It's taking up 4GB
- How much storage space do I really have?
- The state's miniscule security apparatus is already 'ruling' a large teeming populace, how much more barebones can we get?
- Can I use a smart plug to disable a gas boiler at night?
- Can poetry be substantively conducive to philosophy?
- Simplify into reduced form
- How can I clean unsealed concrete before installing flooring?
- Can an aspect ratio of of +5 % have an adverse effect on a differential?
- How to automatically refresh or reload Import CSV node data?
- What form factor did the first-gen "compact Mac" HDDs use?
- A "crappy" pentagon puzzle
- How to design a distributed system with an event broker where strong ordering is required?
- Substitute patterns with values from lists
- Proper antonym of "body shaming"
- Let’s go to the pub! Hey, we’re all thirsty but some of us don’t want to get drunk.
- Could satellites be made to fly in a formation that creates a moving image when viewed from earth?
- Destroying the parent when all children are destroyed
- Is 1971 minimum wage "in silver quarters" far, far higher than the current minimum wage?
default
r 100 100 500 500to draw a rect, etc. \$\endgroup\$