Click here to Skip to main content
15,891,597 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I've been stuck for two days on nothing Pin
Gary R. Wheeler23-Jun-21 13:53
Gary R. Wheeler23-Jun-21 13:53 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch23-Jun-21 13:57
mvahoney the codewitch23-Jun-21 13:57 
GeneralRe: I've been stuck for two days on nothing Pin
Gary R. Wheeler23-Jun-21 14:09
Gary R. Wheeler23-Jun-21 14:09 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch23-Jun-21 14:23
mvahoney the codewitch23-Jun-21 14:23 
GeneralRe: I've been stuck for two days on nothing Pin
Marc Clifton23-Jun-21 15:54
mvaMarc Clifton23-Jun-21 15:54 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch23-Jun-21 16:22
mvahoney the codewitch23-Jun-21 16:22 
GeneralRe: I've been stuck for two days on nothing Pin
Greg Utas23-Jun-21 15:56
professionalGreg Utas23-Jun-21 15:56 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch23-Jun-21 16:15
mvahoney the codewitch23-Jun-21 16:15 
There is no polymorphism.

Draw targets are those handles you write to.

C++
draw::point(my_draw_target,spoint16(10,15),color_max::red);


Here, my_draw_target is what gets drawn to. above draws a point at (10,16), color of red

my_draw_target in this case, is say, screen mode 0

but I now want to switch screen modes

C++
// switch the driver to a new screen mode: 
auto my_draw_target2 = driver.mode<1>();
// now draw to the new screen
draw::line(my_draw_target2,srect16(0,0,9,14),color_max::antique_white);


In the above case, once you have my_draw_target2, my_draw_target becomes persona non grata. How that is handled is the question, meaning what happens if i then try to draw again to my_draw_target?


PS: It may appear that my_draw_target and my_draw_target2 are polymorphic but they are not. They do sort of have a shared interface, but they don't. It's complicated. I bind using templates, not virtual base classes
Real programmers use butterflies

GeneralRe: I've been stuck for two days on nothing Pin
NeverJustHere23-Jun-21 18:08
NeverJustHere23-Jun-21 18:08 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch23-Jun-21 18:36
mvahoney the codewitch23-Jun-21 18:36 
GeneralRe: I've been stuck for two days on nothing Pin
NeverJustHere23-Jun-21 23:53
NeverJustHere23-Jun-21 23:53 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch24-Jun-21 1:20
mvahoney the codewitch24-Jun-21 1:20 
GeneralRe: I've been stuck for two days on nothing Pin
ElectronProgrammer25-Jun-21 12:33
ElectronProgrammer25-Jun-21 12:33 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch25-Jun-21 15:21
mvahoney the codewitch25-Jun-21 15:21 
GeneralRe: I've been stuck for two days on nothing Pin
Greg Utas24-Jun-21 0:32
professionalGreg Utas24-Jun-21 0:32 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch24-Jun-21 1:24
mvahoney the codewitch24-Jun-21 1:24 
GeneralRe: I've been stuck for two days on nothing Pin
Greg Utas24-Jun-21 1:41
professionalGreg Utas24-Jun-21 1:41 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch24-Jun-21 1:51
mvahoney the codewitch24-Jun-21 1:51 
GeneralRe: I've been stuck for two days on nothing Pin
Member 1419238225-Jun-21 3:42
Member 1419238225-Jun-21 3:42 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch25-Jun-21 4:36
mvahoney the codewitch25-Jun-21 4:36 
QuestionRe: I've been stuck for two days on nothing Pin
CPallini24-Jun-21 2:21
mveCPallini24-Jun-21 2:21 
AnswerRe: I've been stuck for two days on nothing Pin
honey the codewitch24-Jun-21 6:09
mvahoney the codewitch24-Jun-21 6:09 
GeneralRe: I've been stuck for two days on nothing Pin
obeobe24-Jun-21 22:58
obeobe24-Jun-21 22:58 
GeneralRe: I've been stuck for two days on nothing Pin
AnotherKen25-Jun-21 17:54
professionalAnotherKen25-Jun-21 17:54 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch25-Jun-21 18:22
mvahoney the codewitch25-Jun-21 18:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.