; ##-----------------------------LICENSE NOTICE------------------------------------
; ##  This file is part of Hacktank
; ##
; ##  Hacktank is free software: you can redistribute it and/or modify
; ##  it under the terms of the GNU Lesser General Public License as published by
; ##  the Free Software Foundation, either version 3 of the License, or
; ##  (at your option) any later version.
; ##
; ##  Hacktank is distributed in the hope that it will be useful,
; ##  but WITHOUT ANY WARRANTY; without even the implied warranty of
; ##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; ##  GNU Lesser General Public License for more details.
; ##
; ##  You should have received a copy of the GNU Lesser General Public License
; ##  along with Hacktank.  If not, see <http://www.gnu.org/licenses/>.
; ##------------------------------------------------------------------------------

.globl ren_drawEntity
.globl switch
.globl ren_clarBackbuffer
.globl ren_newScene
.globl m_back_buffer
.globl ren_clearO
.globl ren_clear1
.globl destroy
.globl reset_pantalla
.globl cleartotal
.globl efectosonidodisparomio
.globl efectosonidodisparoenem

.macro DrawableEntity _name, _x, _y, _w, _h, _sprite,_antx,_anty
_name:
   .db    _x, _y     ;; X, Y 50 C0-C7
   .db    _w, _h     ;; W, H
   .db    _antx,_anty
   .dw   _sprite         ;; Color
.endm
;.macro DefineDrawableDefault _name, _suf
;  DrawableEntity _name'_suf, 0xAA, 0, 0, 0, 0xFFFF;'
;.endm
;.macro DefineNDrawable _name, _n
;  _c=0
;  .rept _n
;    DefineDrawableDefault _name,\_c
;    _c=_c+1
;    .endm
;.endm
K_drawable_size=8

de_x = 0
de_y = 1
de_w = 2
de_h = 3
de_antx=4
de_anty=5
sprite_l = 6
sprite_h=7
