… | |
… | |
2603 | const_iv (GL_PERSPECTIVE_CORRECTION_HINT), |
2603 | const_iv (GL_PERSPECTIVE_CORRECTION_HINT), |
2604 | const_iv (GL_POINT_SMOOTH_HINT), |
2604 | const_iv (GL_POINT_SMOOTH_HINT), |
2605 | const_iv (GL_LINE_SMOOTH_HINT), |
2605 | const_iv (GL_LINE_SMOOTH_HINT), |
2606 | const_iv (GL_POLYGON_SMOOTH_HINT), |
2606 | const_iv (GL_POLYGON_SMOOTH_HINT), |
2607 | const_iv (GL_GENERATE_MIPMAP_HINT), |
2607 | const_iv (GL_GENERATE_MIPMAP_HINT), |
|
|
2608 | const_iv (GL_TEXTURE_COMPRESSION_HINT), |
2608 | const_iv (GL_FASTEST), |
2609 | const_iv (GL_FASTEST), |
2609 | const_iv (GL_DONT_CARE), |
2610 | const_iv (GL_DONT_CARE), |
2610 | const_iv (GL_NICEST), |
2611 | const_iv (GL_NICEST), |
2611 | const_iv (GL_V2F), |
2612 | const_iv (GL_V2F), |
2612 | const_iv (GL_V3F), |
2613 | const_iv (GL_V3F), |
… | |
… | |
2620 | |
2621 | |
2621 | texture_av = newAV (); |
2622 | texture_av = newAV (); |
2622 | AvREAL_off (texture_av); |
2623 | AvREAL_off (texture_av); |
2623 | } |
2624 | } |
2624 | |
2625 | |
|
|
2626 | void |
|
|
2627 | disable_GL_EXT_blend_func_separate () |
|
|
2628 | CODE: |
|
|
2629 | gl.BlendFuncSeparate = 0; |
|
|
2630 | gl.BlendFuncSeparateEXT = 0; |
|
|
2631 | |
2625 | char * |
2632 | char * |
2626 | gl_vendor () |
2633 | gl_vendor () |
2627 | CODE: |
2634 | CODE: |
2628 | RETVAL = (char *)glGetString (GL_VENDOR); |
2635 | RETVAL = (char *)glGetString (GL_VENDOR); |
2629 | OUTPUT: |
2636 | OUTPUT: |
… | |
… | |
2749 | glTexCoord2f (s, t); |
2756 | glTexCoord2f (s, t); |
2750 | |
2757 | |
2751 | void glRect (float x1, float y1, float x2, float y2) |
2758 | void glRect (float x1, float y1, float x2, float y2) |
2752 | CODE: |
2759 | CODE: |
2753 | glRectf (x1, y1, x2, y2); |
2760 | glRectf (x1, y1, x2, y2); |
|
|
2761 | |
|
|
2762 | void glRect_lineloop (float x1, float y1, float x2, float y2) |
|
|
2763 | CODE: |
|
|
2764 | glBegin (GL_LINE_LOOP); |
|
|
2765 | glVertex2f (x1, y1); |
|
|
2766 | glVertex2f (x2, y1); |
|
|
2767 | glVertex2f (x2, y2); |
|
|
2768 | glVertex2f (x1, y2); |
|
|
2769 | glEnd (); |
2754 | |
2770 | |
2755 | PROTOTYPES: ENABLE |
2771 | PROTOTYPES: ENABLE |
2756 | |
2772 | |
2757 | void glBegin (int mode) |
2773 | void glBegin (int mode) |
2758 | |
2774 | |
… | |
… | |
2911 | glEnd (); |
2927 | glEnd (); |
2912 | glDisable (GL_BLEND); |
2928 | glDisable (GL_BLEND); |
2913 | } |
2929 | } |
2914 | } |
2930 | } |
2915 | #if 0 |
2931 | #if 0 |
2916 | if ($ENV{CFPLUS_DEBUG} & 1) { |
2932 | // draw borders, for debugging |
2917 | glPushMatrix; |
2933 | glPushMatrix (); |
2918 | glColor 1, 1, 0, 1; |
2934 | glColor4f (1., 1., 0., 1.); |
2919 | glTranslate 0.375, 0.375; |
2935 | glTranslatef (.5, .5, 0.); |
2920 | glBegin GL_LINE_LOOP; |
2936 | glBegin (GL_LINE_LOOP); |
2921 | glVertex 0 , 0; |
2937 | glVertex2f (0 , 0); |
2922 | glVertex $self->{w} - 1, 0; |
2938 | glVertex2f (w - 1, 0); |
2923 | glVertex $self->{w} - 1, $self->{h} - 1; |
2939 | glVertex2f (w - 1, h - 1); |
2924 | glVertex 0 , $self->{h} - 1; |
2940 | glVertex2f (0 , h - 1); |
2925 | glEnd; |
2941 | glEnd (); |
2926 | glPopMatrix; |
2942 | glPopMatrix (); |
2927 | #CFPlus::UI::Label->new (w => $self->{w}, h => $self->{h}, text => $self, fontsize => 0)->_draw; |
|
|
2928 | } |
|
|
2929 | #endif |
2943 | #endif |
2930 | PUSHMARK (SP); |
2944 | PUSHMARK (SP); |
2931 | XPUSHs (self); |
2945 | XPUSHs (self); |
2932 | PUTBACK; |
2946 | PUTBACK; |
2933 | call_method ("_draw", G_VOID | G_DISCARD); |
2947 | call_method ("_draw", G_VOID | G_DISCARD); |