-#ifdef OLD_CODE
-void drawOneLine( UINT x1, UINT y1, UINT x2, UINT y2)
-{
- glBegin(GL_LINES);
- glVertex2f(x1, y1);
- glVertex2f(x2, y2);
- glEnd();
-}
-
-void drawOneLine( RECT &rect)
-{
- glBegin(GL_LINES);
- glVertex2f(rect.left, rect.top);
- glVertex2f(rect.right, rect.bottom);
- glEnd();
-}
-
-//
-// The following code deals with painting the "instrument" on the display
-//
-/* textString - Bitmap font string */
-
-void textString( int x, int y, char *msg, void *font,int digit) //suma
-{
-
- if(*msg) {
- // puDrawString ( NULL, msg, x, y );
- glRasterPos2f(x, y);
- while (*msg) {
- glutBitmapCharacter(font, *msg);
- msg++;
- }
- }
-}
-
-
-/* strokeString - Stroke font string */
-void strokeString(int x, int y, char *msg, void *font, float theta)
-{
- int xx;
- int yy;
- int c;
- float sintheta,costheta;
-
-
- if(*msg) {
- glPushMatrix();
- glRotatef(theta * SGD_RADIANS_TO_DEGREES, 0.0, 0.0, 1.0);
- sintheta = sin(theta);
- costheta = cos(theta);
- xx = (int)(x * costheta + y * sintheta);
- yy = (int)(y * costheta - x * sintheta);
- glTranslatef( xx, yy, 0);
- glScalef(.1, .1, 0.0);
- while( (c=*msg++) ) {
- glutStrokeCharacter(font, c);
- }
- glPopMatrix();
- }
-}
-
-int getStringWidth ( char *str )
-{
- if ( HUDtext && str ) {
- float r, l ;
- guiFntHandle->getBBox ( str, HUD_TextSize, 0, &l, &r, NULL, NULL ) ;
- return FloatToInt( r - l );
- }
- return 0 ;
-}
-#endif // OLD_CODE
-