Skip to content

Commit

Permalink
Improve reader
Browse files Browse the repository at this point in the history
  • Loading branch information
casensiom committed Nov 5, 2023
1 parent 6952ece commit ae155d4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
27 changes: 22 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
# Metaballs

Header only metaballs generator in ANSI C

![Thumbnail](./thumbnail.gif)

## Description
## About

[![Build Status](https://github.com/casensiom/metaballs/actions/workflows/cmake-multi-platform.yml/badge.svg)](https://github.com/casensiom/metaballs/actions)


This proyect computes metaballs in pure C, using raylib to render it.
This proyect computes metaballs in pure ANSI C.

There are optimizations yet to be done.

## How to use

There are optimizations to be done.
This library follows [single-file C/C++ public domain libraries](https://github.com/nothings/single_file_libs) rules.

Include the header file and the definition to include the implementation code in just one of the includes.

```c
#define METABALLS_IMPLEMENTATION
#include "metaballs.h"
```

Refer [main.c](https://github.com/casensiom/metaballs/main.c) to see the library usage.

## Features
- **Iteration**: Added a method to visit only valid neighbors.
Expand All @@ -18,5 +34,6 @@ There are optimizations to be done.
- **Control**: Added mouse and keyboard control.

## TODO

- Known issue. The spheric texture mapping doesn't close correctly.
- Code clean: Add prefix to library methods and structures. (Avoid name collision)
- Known issue: The spheric texture mapping doesn't close correctly.
- Performance: Avoid repeat vertex on mesh generation.
5 changes: 5 additions & 0 deletions metaballs.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Metaballs library generator - v1.0 - public domain
// https://github.com/casensiom/metaballs
//


#ifndef _METABALLS_H_
#define _METABALLS_H_

Expand Down

0 comments on commit ae155d4

Please sign in to comment.