summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/texture.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/texture.cpp b/src/texture.cpp
index 28cdeff..ac2a8e4 100644
--- a/src/texture.cpp
+++ b/src/texture.cpp
@@ -116,48 +116,6 @@ cg_cTexture_height(mrb_state *mrb, mrb_value self)
return mrb_int_value(mrb, (*ptr)->height);
}
-// static mrb_value
-// cg_cTexture_draw(mrb_state *mrb, mrb_value self)
-// {
-// SDL_Rect dst_rect;
-
-// struct cg_texture *ptr;
-// struct cg_point *point;
-
-// mrb_get_args(mrb, "d", &point, &cg_point_type);
-// ptr = (struct cg_texture *)DATA_PTR(self);
-
-// dst_rect.x = point->data.x;
-// dst_rect.y = point->data.y;
-// dst_rect.w = ptr->width;
-// dst_rect.h = ptr->height;
-
-// SDL_RenderCopy(cg_core.renderer, ptr->data, nullptr, &dst_rect);
-
-// return self;
-// }
-
-// static mrb_value
-// cg_cTexture_draw_xy(mrb_state *mrb, mrb_value self)
-// {
-// SDL_Rect dst_rect;
-
-// struct cg_texture *ptr;
-// mrb_int x, y;
-
-// mrb_get_args(mrb, "ii", &x, &y);
-// ptr = (struct cg_texture *)DATA_PTR(self);
-
-// dst_rect.x = x;
-// dst_rect.y = y;
-// dst_rect.w = ptr->width;
-// dst_rect.h = ptr->height;
-
-// SDL_RenderCopy(cg_core.renderer, ptr->data, nullptr, &dst_rect);
-
-// return self;
-// }
-
void
cg_texture_init(mrb_state *mrb)
{
@@ -179,8 +137,4 @@ cg_texture_init(mrb_state *mrb)
mrb, cg_cTexture, "width", cg_cTexture_width, MRB_ARGS_NONE());
mrb_define_method(
mrb, cg_cTexture, "height", cg_cTexture_height, MRB_ARGS_NONE());
- // mrb_define_method(
- // mrb, cg_cTexture, "draw", cg_cTexture_draw, MRB_ARGS_REQ(1));
- // mrb_define_method(
- // mrb, cg_cTexture, "draw_xy", cg_cTexture_draw_xy, MRB_ARGS_REQ(2));
}