Changes between Version 3 and Version 4 of LibMemphis


Ignore:
Timestamp:
May 29, 2009, 9:49:40 PM (5 years ago)
Author:
simon
Comment:

first functions added

Legend:

Unmodified
Added
Removed
Modified
  • LibMemphis

    v3 v4  
    1010== Proposed API == 
    1111 
     12Header: 
     13{{{ 
     14#include "memphis.h" 
     15}}} 
     16 
     17Class '''!MemphisRenderer''': 
     18{{{ 
     19MemphisRenderer* memphis_renderer_new () 
     20MemphisRenderer* memphis_renderer_new (MemphisRuleSet *rules, MemphisMap *map) 
     21void memphis_renderer_free (MemphisRenderer *r) 
     22void memphis_renderer_set_rule_set (MemphisRenderer *r, MemphisRuleSet *rules) 
     23void memphis_renderer_set_map (MemphisRenderer *r, MemphisMap *map) 
     24void memphis_renderer_set_resolution (MemphisRenderer *r, guint width, guint height) 
     25void memphis_renderer_set_zoom_level (MemphisRenderer *r, gshort zoom_level) 
     26 
     27void memphis_renderer_draw (MemphisRenderer *r, cairo_t *cr) 
     28void memphis_renderer_draw_tile (MemphisRenderer *r, cairo_t *cr, guint x, guint y) 
     29}}} 
     30 
     31Class '''!MemphisMap''': 
     32{{{ 
     33MemphisMap* memphis_map_new_from_file (gchar* filename) 
     34MemphisMap* memphis_map_new_from_data (gchar* data) 
     35void memphis_map_free (MemphisMap* map) 
     36}}} 
     37 
     38Class '''!MemphisRuleSet''': 
     39{{{ 
     40MemphisRuleSet* memphis_rule_set_new_from_file (gchar* filename) 
     41MemphisRuleSet* memphis_rule_set_new_from_data (gchar* data) 
     42void memphis_rule_set_free (MemphisRuleSet* rules) 
     43}}} 
     44 
     45Class '''!MemphisRule''': 
     46 
    1247TODO 
    13  
    14 Classes: !MemphisRuleSet, !MemphisRule, !MemphisMap, !MemphisRenderer 
    1548 
    1649== Done ==