Exemple #1
0
 [DllImport(Libraries.allegro_dll, CallingConvention = CallingConvention.Cdecl)] public static extern void al_draw_tinted_scaled_rotated_bitmap_region(IntPtr bitmap, float sx, float sy, float sw, float sh, Color.ALLEGRO_COLOUR tint, float cx, float cy, float dx, float dy, float xscale, float yscale, float angle, ALLEGRO_BLIT_FLAGS flags);
Exemple #2
0
 [DllImport(Libraries.allegro_dll, CallingConvention = CallingConvention.Cdecl)] public static extern void al_draw_tinted_scaled_bitmap(IntPtr bitmap, Color.ALLEGRO_COLOUR colour, float sx, float sy, float sw, float sh, float dx, float dy, float dw, float dh, ALLEGRO_BLIT_FLAGS flags);
Exemple #3
0
 [DllImport(Libraries.allegro_dll, CallingConvention = CallingConvention.Cdecl)] public static extern void al_clear_to_color(Color.ALLEGRO_COLOUR colour);
Exemple #4
0
 [DllImport(Libraries.allegro_dll, CallingConvention = CallingConvention.Cdecl)] public static extern void al_draw_tinted_bitmap(IntPtr bitmap, Color.ALLEGRO_COLOUR tint, float x, float y, ALLEGRO_BLIT_FLAGS flags);
Exemple #5
0
 [DllImport(Libraries.allegroprimitives_dll, CallingConvention = CallingConvention.Cdecl)] public static extern void al_draw_line(float x1, float y1, float x2, float y2, Color.ALLEGRO_COLOUR colour, float thickness);
Exemple #6
0
 [DllImport(Libraries.allegroprimitives_dll, CallingConvention = CallingConvention.Cdecl)] public static extern void al_draw_filled_triangle(float x1, float y1, float x2, float y2, float x3, float y3, Color.ALLEGRO_COLOUR colour);
Exemple #7
0
        public static void al_draw_polygon(float[] vertices, int vertex_count, ALLEGRO_LINE_JOIN join_style, Color.ALLEGRO_COLOUR colour, float thickness, float miter_limit)
        {
            IntPtr vptr = Marshal.AllocHGlobal(sizeof(float) * vertices.Count());

            Marshal.Copy(vertices, 0, vptr, vertices.Count());
            al_draw_polygon(vptr, vertex_count, join_style, colour, thickness, miter_limit);
            Marshal.FreeHGlobal(vptr);
        }
Exemple #8
0
        public static void al_draw_filled_polygon(float[] vertices, int vertex_count, Color.ALLEGRO_COLOUR colour)
        {
            IntPtr vptr = Marshal.AllocHGlobal(sizeof(float) * vertices.Count());

            Marshal.Copy(vertices, 0, vptr, vertices.Count());
            al_draw_filled_polygon(vptr, vertex_count, colour);
            Marshal.FreeHGlobal(vptr);
        }
Exemple #9
0
 [DllImport(Libraries.allegroprimitives_dll, CallingConvention = CallingConvention.Cdecl)] public static extern void al_draw_filled_polygon_with_holes(float[] vertices, int[] vertex_counts, Color.ALLEGRO_COLOUR colour);
Exemple #10
0
 [DllImport(Libraries.allegroprimitives_dll, CallingConvention = CallingConvention.Cdecl)] public static extern void al_draw_polygon(IntPtr vertices, int vertex_count, ALLEGRO_LINE_JOIN join_style, Color.ALLEGRO_COLOUR colour, float thickness, float miter_limit);
Exemple #11
0
 [DllImport(Libraries.allegroprimitives_dll, CallingConvention = CallingConvention.Cdecl)] public static extern void al_draw_elliptical_arc(float cx, float cy, float rx, float ry, float start_theta, float delta_theta, Color.ALLEGRO_COLOUR colour, float thickness);
Exemple #12
0
 [DllImport(Libraries.allegroprimitives_dll, CallingConvention = CallingConvention.Cdecl)] public static extern void al_draw_filled_circle(float cx, float cy, float r, Color.ALLEGRO_COLOUR colour);
Exemple #13
0
 [DllImport(Libraries.allegrofont_dll, CallingConvention = CallingConvention.Cdecl)] public static extern void al_draw_justified_text(IntPtr font, Color.ALLEGRO_COLOUR colour, float x, float y, ALLEGRO_FONT_DRAW_FLAGS flags, string str);