public static extern int nk_begin_titled( nk_context *context, string name, string title, nk_rect bounds, uint flags_nkflags );
public static extern void nk_stroke_rect( nk_command_buffer *cbuf, nk_rect r, float rounding, float line_thickness, nk_color col );
public static extern int nk_popup_begin( nk_context *ctx, nk_popup_type type, byte *s, uint flags_nkflags, nk_rect bounds );
public static extern void nk_draw_list_stroke_rect( nk_draw_list *dl, nk_rect rect, nk_color col, float rounding, float thickness );
public static extern void nk_triangle_from_direction( nk_vec2 *result, nk_rect r, float pad_x, float pad_y, nk_heading heading );
public static extern void nk_draw_list_fill_rect_multi_color( nk_draw_list *dl, nk_rect rect, nk_color left, nk_color top, nk_color right, nk_color bottom );
public static extern void nk_fill_rect_multi_color( nk_command_buffer *cbuf, nk_rect r, nk_color left, nk_color top, nk_color right, nk_color bottom );
public static extern void nk_draw_text( nk_command_buffer *cbuf, nk_rect r, byte *text, int len, nk_user_font *userfont, nk_color col, nk_color col2 );
public static extern void nk_draw_list_add_text( nk_draw_list *dl, nk_user_font *userfont, nk_rect rect, byte *text, int len, float font_height, nk_color col );
public override void Render(nk_handle Userdata, Texture Texture, nk_rect ClipRect, uint Offset, uint Count, NkVertex[] Verts, ushort[] Inds) { Vertex[] SfmlVerts = new Vertex[Count]; for (int i = 0; i < Count; i++) { NkVertex V = Verts[Inds[Offset + i]]; SfmlVerts[i] = new Vertex(new Vector2f(V.Position.X, V.Position.Y), new Color(V.Color.R, V.Color.G, V.Color.B, V.Color.A), new Vector2f(V.UV.X, V.UV.Y)); } Texture.Bind(Texture); GayGL.glEnable(GayGL.GL_SCISSOR_TEST); GayGL.glScissor2((int)RWind.Size.Y, (int)ClipRect.x, (int)ClipRect.y, (int)ClipRect.w, (int)ClipRect.h); RWind.Draw(SfmlVerts, PrimitiveType.Triangles); GayGL.glDisable(GayGL.GL_SCISSOR_TEST); }
public static extern int nk_input_has_mouse_click_down_in_rect(nk_input *inp, nk_buttons buttons, nk_rect r, int down);
public override void Render(nk_handle udata, Texture texture, nk_rect clipRect, uint offset, uint count) { Scissor = clipRect; Texture = texture; }
public static extern int nk_contextual_begin( nk_context *ctx, uint flags_nkflags, nk_vec2 v, nk_rect trigger_bounds );
public static extern void nk_window_set_bounds(nk_context *ctx, byte *name, nk_rect bounds);
public static extern void nk_push_scissor(nk_command_buffer *cbuf, nk_rect r);
public static extern void nk_layout_space_push(nk_context *ctx, nk_rect rect);
public static extern int nk_input_is_mouse_hovering_rect(nk_input *inp, nk_rect r);
public static extern void nk_fill_circle(nk_command_buffer *cbuf, nk_rect r, nk_color col);
public static extern nk_vec2 nk_rect_size(nk_rect r);
public static extern void nk_draw_list_add_image( nk_draw_list *dl, nk_image texture, nk_rect rect, nk_color col );
public static extern int nk_begin(nk_context *context, byte *title, nk_rect bounds, uint flags_nkflags);
public static extern void nk_draw_image(nk_command_buffer *cbuf, nk_rect r, nk_image *img, nk_color col);
public static extern void nk_draw_list_fill_rect(nk_draw_list *dl, nk_rect rect, nk_color col, float rounding);
public static extern int nk_input_is_mouse_click_down_in_rect(nk_input *inp, nk_buttons id, nk_rect b, int down);
public static extern int nk_input_any_mouse_click_in_rect(nk_input *inp, nk_rect r);
public static extern void nk_fill_rect( nk_command_buffer *cbuf, nk_rect r, float rounding, nk_color col );
public static extern int nk_input_mouse_clicked(nk_input *inp, nk_buttons buttons, nk_rect r);
public abstract void Render(nk_handle userdata, int texture, nk_rect clipRect, uint offset, uint count);
public static extern nk_rect nk_layout_space_rect_to_local(nk_context *ctx, nk_rect r);
public static extern void nk_push_custom( nk_command_buffer *cbuf, nk_rect r, nk_command_custom_callback cb, nk_handle userdata );