Getting these errors when I try to compile the latest SSU beta sources. This is for Orbiter beta rev. 57 with the D3D9Client beta 24.
Code:
14>e:\ssu_beta\orbitersdk\space shuttle ultra\vc\mdu_aepfd_display.cpp(2030): error C2039: 'SkpMeshFlags' : is not a member of 'oapi::Sketchpad2'
14> e:\ssu_beta\orbitersdk\include\sketchpad2.h(34) : see declaration of 'oapi::Sketchpad2'
14>e:\ssu_beta\orbitersdk\space shuttle ultra\vc\mdu_aepfd_display.cpp(2030): error C2065: 'SkpMeshFlags' : undeclared identifier
14>e:\ssu_beta\orbitersdk\space shuttle ultra\vc\mdu_aepfd_display.cpp(2030): error C2143: syntax error : missing ')' before 'constant'
14>e:\ssu_beta\orbitersdk\space shuttle ultra\vc\mdu_aepfd_display.cpp(2030): error C2059: syntax error : ')'
14> MDU_OrbitPFD_Display.cpp
14> MDU_Subsystem_Displays.cpp
14> PanelA1U.cpp
14>e:\ssu_beta\orbitersdk\space shuttle ultra\vc\mdu_orbitpfd_display.cpp(806): error C2039: 'SkpMeshFlags' : is not a member of 'oapi::Sketchpad2'
14> e:\ssu_beta\orbitersdk\include\sketchpad2.h(34) : see declaration of 'oapi::Sketchpad2'
14>e:\ssu_beta\orbitersdk\space shuttle ultra\vc\mdu_orbitpfd_display.cpp(806): error C2065: 'SkpMeshFlags' : undeclared identifier
14>e:\ssu_beta\orbitersdk\space shuttle ultra\vc\mdu_orbitpfd_display.cpp(806): error C2143: syntax error : missing ')' before 'constant'
14>e:\ssu_beta\orbitersdk\space shuttle ultra\vc\mdu_orbitpfd_display.cpp(806): error C2059: syntax error : ')'
It seems the Sketchpad2 implementation has changed. I'm sorry, but currently I'm "stuck" in Orbiter r55 and D3D9 r23.11 as I'm holding the guts of the display system in my hands, so I can't update that code. I'll try to take a look what changed and guide you to a fix.
Speaking of display system, I'm again with some problems: I can't draw the shuttle icon/bug/whatever it is called in the DPS displays. Because the lines are now thicker, I can't make it look good.
Having the icons in the bitmap (and/or the font) is an idea, but it would require the use of SRCPAINT in BitBlt so the icon can be placed over anything without hiding it. It also needs to rotate the icon on demand. In GDI all of this seems to be possible, but in D3D9 I'm not sure about the SRCPAINT part...
Having a "2º type" of line, that uses a thin pen, is an alternative.
Or adding a Pixel "type", that would paint individual pixels... but I don't think it would work well in the rotations.
I'm more inclined for the "thin pen" solution, but the SRCPAINT solution, together with some small additions to the DPS display, would allow text to be placed "outside" if the grid, thus allowing more correct placement of some stuff. It would also allow arrows/triangles in scales to be in the font/bitmap.