Advertisement

Latest C Activity

dimi309
September 26, 2024 06:28 AM
Abandoning the Rust Programming Language

This is my second “abandoning” article (also see “Abandoning Vulkan”) so it needs to be mentioned that I am all for trying new things and not sticking to a single programming language or technology in general. As was the case with the Vulkan API, before deciding to write this text as the conclusion…

3,455 views
Advertisement
sausagejohnson
August 27, 2024 01:59 AM
Orx - Portable Game Engine version 1.15 has been released

The Orx community is pleased to announce the 1.15 release.

There are quite a few changes in this release.
Here are some highlights:

  • A new resource type, mem, has been added for in-memory/embedded resources. The embedded default font and orx logo are leveraging it, while ultimately reducing the size of…
2,935 views
Need to clip depth to inside of

Found a solution. What I had was mostly correct, but I needed to flush the ZBuffer, then re-draw my portal triangles to the depth buffer after drawing the contents of the portal.

void RENDER_StartPolyStencil(vertexStruct* v, int n)
{
	glEnable(GL_STENCIL_TEST);
	glDepthMask(GL_TRUE);

	glStencilMask…
3,947 views
Calculating Normals of a Cube

Thank you for the hint. I visualized the normal vectors and saw that they all had seemingly random orientations:

I printed out the calculated normals and visualized them by hand, confirming that they are actually all correct. I then changed my focus to the matter of actually sending this data to th…

5,780 views

@1negroup Is the whole screen flashing? I'm not familiar with xlib, but problems with flashing/flickering make me think you're not using double buffering or if you are using DB, you have an erase screen flag set as true when it should be false.

5,223 views

Alberth said:

a light breeze said:
How do you define scripting language? I define it as a programming language that does not require a separate compilation step.

There are **very** few language definitions that define how to build an implementation. For example, while C is typically compiled as a sepa…

6,399 views

A major detail I notice in your code and since we're not in the For Beginners forum, you're not checking the results of scanf().

Input functions can fail for many reasons. For the scanf() family the return value is the number of items successfully matched and processed, or EOF in the result of failu…

5,104 views
enigma_dev
May 08, 2022 02:25 PM
DevBlog 26 - Finishing The Game!




It's over, I've finally completed my from scratch game project!

The final stretch has been far from glorious.

Rather than making features, it has been nonstop bug fixing.

To reach feature complete, I started just writing down non critical bugs rather than fixing them.

But after feature complete, I star…

21,769 views
enigma_dev
April 04, 2022 12:53 PM
DevBlog 21 - Writing a simple Audio System in OpenAL




Adding audio to my engine.  

I used OpenAL as the API is similar to OpenGL, the graphics API of this project.

I've added sounds to ship engines, lasers, explosions, UI, and more.

OpenAL makes Doppler effects easy, it just works out of the box.  

I know there isn't sound in space, but I'm take…

17,889 views
epermyakov
September 10, 2020 06:05 PM
Writing a Real-Time Strategy Engine From Scratch, Or How I Made Pong In Only 3 Years

Hello gamedev.net!

The time has come for me to exit the shadows in which I lurked.

In the fall of 2017, I started going through some OpenGL tutorials and trying to put together my own renderer. It was fun. Maybe it was this feeling of fun that led me down the path that I followed. Here's one of the f…

24,659 views
canoi
July 02, 2020 11:30 PM
tinycoffee game framework

I'm working on a game framework called tinycoffee (tico), programming in C and Lua, using OpenGL 3.2. The structure is very similar to LÖVE.

The library is in an initial stage, so i don't recommend using for a commercial project. I have plans to create a simple editor, and make smaller editors as mo…

6,545 views
Advertisement
Advertisement