Giter VIP home page Giter VIP logo

zigraylib's Introduction

zigraylib

A fairly minimal raylib zig example codebase using the zig package manager.

install

git clone https://github.com/SimonLSchlee/zigraylib.git
cd zigraylib
zig build run

tested with zig version: 0.13.0
using raylib commit: https://github.com/raysan5/raylib/tree/52f2a10db610d0e9f619fd7c521db08a876547d0

resources

raylib cheatsheet
Learn โšก Zig Programming Language
Zig Community

raygui

If you want to use raygui checkout the raygui branch.

code completion

zls installation

ideas or improvements?

Let me know if you have ideas about things that could make this example better. I want to keep it fairly minimal, but maybe we can add some more links to useful resources, or point out common problems. Ziggit topic for discussion: https://ziggit.dev/t/raylib-example-using-the-package-manager/1787

license

public domain or MIT

zigraylib's People

Contributors

simonlschlee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nothke robro

zigraylib's Issues

Adding raygui

hi, thanks for the example with the zig package manager.
I'm still trying to grog building with build.zig and zon.

I'm trying to use raygui with raylib:

problem: error: expected type 'usize', found '[*c]u8'
fileDataPtr += @as([*c]u8, @ptrFromInt(@sizeof(c_int)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
referenced by:
GuiLoadStyle: D:\Programming\Zig\prototyping\zigraylib.zig-cache\o\979fb58a68b8bcdd14106ae1ed3f8091\cimport.zig:5441:17

Do you have a hunch where this error may be coming from?

I'd love to add raygui to this repository as it would potentially benefit other users as well.
thanks in advance!

Issue with `addCSourceFiles`

Hi, I'm using zig 0.11.0 and I'm having trouble executing your repo.

C:\Users\gab\AppData\Local\zig\p\1220ffd2f055bc121bf6ef00cb9df347b5993406efb3a16ac92dd7e6f386ca53f725\src\build.zig:23:11: error: member function expected 2 argument(s), found 1
    raylib.addCSourceFiles(.{
    ~~~~~~^~~~~~~~~~~~~~~~
C:\Users\gab\scoop\apps\zig\current\lib\std\Build\Step\Compile.zig:891:5: note: function declared here
pub fn addCSourceFiles(self: *Compile, files: []const []const u8, flags: []const []const u8) void {

Thanks for creating this example !

Unable to check cache: stat file

Running on the latest version of Zig (0.12.0 dev 3381) yields some strange cache errors. I have cleared zig-cache, re-cloned a fresh project, and I get cache errors no matter what. If you could try compiling with the latest version of Zig master branch and letting me know if it works or not on your system, that would be awesome!

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.