From 865eee2f6b19ce2527bbde3ae6e692e321560b35 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 8 Aug 2019 16:08:58 +0200 Subject: [PATCH] gg: remove draw_text() --- vlib/gg/gg.v | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/vlib/gg/gg.v b/vlib/gg/gg.v index 017e949ccb..45dedcf37f 100644 --- a/vlib/gg/gg.v +++ b/vlib/gg/gg.v @@ -5,7 +5,7 @@ module gg import stbi -import glm +import glm import gl import gx import os @@ -27,8 +27,8 @@ import const ( pub fn vec2(x, y int) Vec2 { res := Vec2 { - x: x, - y: y, + x: x + y: y } return res } @@ -311,10 +311,6 @@ fn (c GG) fill_color(color gx.Color) { fn (c GG) fill() { } -pub fn (ctx &GG) draw_text(_x, _y int, text string, cfg gx.TextCfg) { -//pub fn (c &GG) draw_text(x, y int) { -} - fn (c GG) move_to(x, y int) { }