*/}}

ourpaint.c 762 B

123456789101112131415161718192021222324252627282930313233
  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. //laAddRootDBInst("la.input_mapping");
  11. //laAddRootDBInst("la.drivers");
  12. //laAddRootDBInst("our.tools");
  13. laWindow* w = laDesignWindow(-1,-1,600,600);
  14. laLayout* l = laDesignLayout(w, "Our Paint");
  15. laBlock* b = l->FirstBlock;
  16. laSplitBlockHorizon(b,0.7);
  17. laCreatePanel(b->B1, "panel_canvas");
  18. laBlock* br=b->B2;
  19. laSplitBlockVertical(br,0.6);
  20. laCreatePanel(br->B1, "panel_color");
  21. laCreatePanel(br->B1, "panel_tools");
  22. laCreatePanel(br->B2, "panel_layers");
  23. laStartWindow(w);
  24. laMainLoop();
  25. }