*/}}

ourpaint.c 645 B

1234567891011121314151617181920212223242526272829
  1. #include "ourpaint.h"
  2. extern LA MAIN;
  3. extern tnsMain* T;
  4. extern OurPaint *Our;
  5. int main(int argc, char *argv[]){
  6. laGetReady();
  7. ourInit();
  8. laRefreshUDFRegistries();
  9. laEnsureUserPreferences();
  10. laWindow* w = laDesignWindow(-1,-1,600,600);
  11. laLayout* l = laDesignLayout(w, "Our Paint");
  12. laBlock* b = l->FirstBlock;
  13. laSplitBlockHorizon(b,0.7);
  14. laCreatePanel(b->B1, "panel_canvas");
  15. laBlock* br=b->B2;
  16. laSplitBlockVertical(br,0.6);
  17. laCreatePanel(br->B1, "panel_color");
  18. laCreatePanel(br->B1, "panel_tools");
  19. laCreatePanel(br->B2, "panel_layers");
  20. laStartWindow(w);
  21. laMainLoop();
  22. }