Subversion Repositories Games.Carmageddon

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #ifndef _PMMEM_H_
  2. #define _PMMEM_H_
  3.  
  4. #include "brender/br_types.h"
  5.  
  6. extern pm_type_info pmTypeInfo[30];
  7.  
  8. br_device_pixelmap* DevicePixelmapMemAllocate(br_uint_8 type, br_uint_16 w, br_uint_16 h, void* pixels, int flags);
  9.  
  10. void CheckDispatch(br_device_pixelmap* pm);
  11.  
  12. br_error _M_br_device_pixelmap_mem_allocateSub(br_device_pixelmap* self, br_device_pixelmap** newpm, br_rectangle* rect);
  13.  
  14. void _M_br_device_pixelmap_mem_free(br_device_pixelmap* self);
  15.  
  16. char* _M_br_device_pixelmap_mem_identifier(br_device_pixelmap* self);
  17.  
  18. br_token _M_br_device_pixelmap_mem_type(br_device_pixelmap* self);
  19.  
  20. br_boolean _M_br_device_pixelmap_mem_isType(br_device_pixelmap* self, br_token t);
  21.  
  22. br_device* _M_br_device_pixelmap_mem_device(br_device_pixelmap* self);
  23.  
  24. br_int_32 _M_br_device_pixelmap_mem_space(br_device_pixelmap* self);
  25.  
  26. br_tv_template* _M_br_device_pixelmap_mem_queryTemplate(br_device_pixelmap* self);
  27.  
  28. br_error _M_br_device_pixelmap_mem_validSource(br_device_pixelmap* self, br_object* h);
  29.  
  30. br_error _M_br_device_pixelmap_mem_resize(br_device_pixelmap* self, br_int_32 width, br_int_32 height);
  31.  
  32. br_error _M_br_device_pixelmap_mem_match(br_device_pixelmap* self, br_device_pixelmap** newpm, br_token_value* tv);
  33.  
  34. br_error _M_br_device_pixelmap_mem_copyTo(br_device_pixelmap* self, br_device_pixelmap* src);
  35.  
  36. br_error _M_br_device_pixelmap_mem_copyFrom(br_device_pixelmap* self, br_device_pixelmap* dest);
  37.  
  38. br_error _M_br_device_pixelmap_mem_fill(br_device_pixelmap* self, br_uint_32 colour);
  39.  
  40. br_error _M_br_device_pixelmap_mem_doubleBuffer(br_device_pixelmap* self, br_device_pixelmap* src);
  41.  
  42. br_error _M_br_device_pixelmap_mem_copyDirty(br_device_pixelmap* self, br_device_pixelmap* src, br_rectangle* dirty, br_int_32 num_rects);
  43.  
  44. br_error _M_br_device_pixelmap_mem_copyToDirty(br_device_pixelmap* self, br_device_pixelmap* src, br_rectangle* dirty, br_int_32 num_rects);
  45.  
  46. br_error _M_br_device_pixelmap_mem_copyFromDirty(br_device_pixelmap* self, br_device_pixelmap* src, br_rectangle* dirty, br_int_32 num_rects);
  47.  
  48. br_error _M_br_device_pixelmap_mem_fillDirty(br_device_pixelmap* self, br_uint_32 colour, br_rectangle* dirty, br_int_32 num_rects);
  49.  
  50. br_error _M_br_device_pixelmap_mem_doubleBufferDirty(br_device_pixelmap* self, br_device_pixelmap* src, br_rectangle* dirty, br_int_32 num_rects);
  51.  
  52. br_error _M_br_device_pixelmap_mem_rectangleCopyTo(br_device_pixelmap* self, br_point* p, br_device_pixelmap* src, br_rectangle* r);
  53.  
  54. br_error _M_br_device_pixelmap_mem_rectangleCopyFrom(br_device_pixelmap* self, br_point* p, br_device_pixelmap* dest, br_rectangle* r);
  55.  
  56. br_error _M_br_device_pixelmap_mem_rectangleStretchCopyTo(br_device_pixelmap* self, br_rectangle* destinationRectangle, br_device_pixelmap* src, br_rectangle* sourceRectangle);
  57.  
  58. br_error _M_br_device_pixelmap_mem_rectangleStretchCopyFrom(br_device_pixelmap* self, br_rectangle* d, br_device_pixelmap* src, br_rectangle* s);
  59.  
  60. br_error _M_br_device_pixelmap_mem_rectangleFill(br_device_pixelmap* self, br_rectangle* rect, br_uint_32 colour);
  61.  
  62. br_error _M_br_device_pixelmap_mem_pixelSet(br_device_pixelmap* self, br_point* p, br_uint_32 colour);
  63.  
  64. br_error _M_br_device_pixelmap_mem_line(br_device_pixelmap* self, br_point* s, br_point* e, br_uint_32 colour);
  65.  
  66. br_error _M_br_device_pixelmap_mem_copyBits(br_device_pixelmap* self, br_point* point, br_uint_8* src, br_uint_16 s_stride, br_rectangle* bit_rect, br_uint_32 colour);
  67.  
  68. br_error _M_br_device_pixelmap_mem_pixelQuery(br_device_pixelmap* self, br_uint_32* pcolour, br_point* p);
  69.  
  70. br_error _M_br_device_pixelmap_mem_pixelAddressQuery(br_device_pixelmap* self, void** pptr, br_uint_32* pqual, br_point* p);
  71.  
  72. br_error _M_br_device_pixelmap_mem_pixelAddressSet(br_device_pixelmap* self, void* ptr, br_uint_32* qual);
  73.  
  74. br_error _M_br_device_pixelmap_mem_originSet(br_device_pixelmap* self, br_point* p);
  75.  
  76. br_error _M_br_device_pixelmap_mem_rowSize(br_device_pixelmap* self, br_size_t* sizep);
  77.  
  78. br_error _M_br_device_pixelmap_mem_rowQuery(br_device_pixelmap* self, void* buffer, br_size_t buffer_size, br_int_32 row);
  79.  
  80. br_error _M_br_device_pixelmap_mem_rowSet(br_device_pixelmap* self, void* buffer, br_size_t buffer_size, br_int_32 row);
  81.  
  82. br_error _M_br_device_pixelmap_mem_flush(br_device_pixelmap* self);
  83.  
  84. br_error _M_br_device_pixelmap_mem_synchronise(br_device_pixelmap* self, br_token sync_type, br_boolean block);
  85.  
  86. br_error _M_br_device_pixelmap_mem_directLock(br_device_pixelmap* self, br_boolean block);
  87.  
  88. br_error _M_br_device_pixelmap_mem_directUnlock(br_device_pixelmap* self);
  89.  
  90. #endif
  91.