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
- What actually creates impedance, or what increases the impedance of a system?
- Cutting a Möbius strip in thirds. Why are the resulting strips interlinked?
- Substitute patterns with values from lists
- Were Biblical “Servants” Essentially Slaves?
- Could satellites be made to fly in a formation that creates a moving image when viewed from earth?
- Find all integers n such that the sum of the factorials of its digits equals ⌊√n⌋
- Integral symbol
- Was 2023 the first time a person in California was killed in a black bear attack?
- Is it possible for a Mercury-type planet to form in liu of an asteroid belt where one would normally form?
- Is it theft if a person takes an item they believed was free?
- Proper antonym of "body shaming"
- Can you bypass PIN requirement of FIDO token protected LUKS device with hex editor?
- A tiny Java framework for gathering running time statistics
- Eigenvalues of integrable Floquet system
- Mirror in both directions in Inkscape
- Making the most out of rawhide armour
- What are the criteria for "bad faith" questions?
- Does the passport one use to enter and leave a country sometimes determine which passport one must use when entering the next country?
- Why does crontab use a wrong editor?
- What do "spelling pronunciation" and "~" mean in Wiktionary?
- Instrumental parts page size, 8.5x11 or 9x12?
- Who gets to choose where a summoned familiar appears?
- How can I clean unsealed concrete before installing flooring?
- Can military personnel disobey illegal orders under U.S. law?
default
r 100 100 500 500to draw a rect, etc. \$\endgroup\$