-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
# Cabal output | ||
dist-newstyle/ | ||
|
||
# Nix output | ||
result | ||
|
||
# Miscellaneous development files (scratch files) | ||
other/ | ||
|
||
# IDE files | ||
.vscode/ | ||
hie.yaml |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{-# OPTIONS -Wall #-} | ||
module Main where | ||
|
||
import Raylib.Core (clearBackground) | ||
import Raylib.Core.Text (drawText) | ||
Check warning on line 5 in examples/raygui-suite/src/Main.hs
|
||
import Raylib.Util (drawing, whileWindowOpen_, withWindow) | ||
import Raylib.Util.Colors (lightGray, rayWhite) | ||
Check warning on line 7 in examples/raygui-suite/src/Main.hs
|
||
import Raylib.Util.GUI (guiLabel, guiSetStyleTextSize) | ||
import Raylib.Types (Rectangle (Rectangle)) | ||
|
||
main :: IO () | ||
main = do | ||
withWindow | ||
1000 | ||
800 | ||
"raylib [raygui] test suite" | ||
60 | ||
( \_ -> do | ||
guiSetStyleTextSize 20 | ||
whileWindowOpen_ | ||
( \_ -> drawing | ||
( do | ||
clearBackground rayWhite | ||
|
||
guiLabel (Rectangle 20 20 200 20) "raygui test suite" | ||
) >> return () | ||
) () | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.