74 ); |
74 ); |
75 if (surface == NULL) { |
75 if (surface == NULL) { |
76 asc_error(SDL_GetError()); |
76 asc_error(SDL_GetError()); |
77 return; |
77 return; |
78 } |
78 } |
79 node->base.scale.width = (float) surface->w; |
79 asc_set_scale2d(&node->base, surface->w, surface->h); |
80 node->base.scale.height = (float) surface->h; |
|
81 asc_update_transform((AscSceneNode *) node); |
80 asc_update_transform((AscSceneNode *) node); |
82 |
81 |
83 // Transfer Image Data |
82 // Transfer Image Data |
84 asc_texture_from_surface(&node->tex, surface); |
83 asc_texture_from_surface(&node->tex, surface); |
85 |
84 |