The C++ Stories Weekly Newsletter

Join ~11000 developers who read about Modern C++, news reports, tools, and more! A new email every Monday.
Bonuses included! C++23/C++20/C++17 ref cards and more!

The above field is supplemented with consent to receive a newsletter containing information and marketing content about the cppstories.com portal from Bartłomiej Filipek codebf based in Krakow. The consent may be withdrawn at any time. See the full Privacy Policy.


See the latest articles:

Flexible particle system - The Container 2

Updated:

Last time I’ve written about problems that we can face when designing a particle container. This post will basically show my current (basic - without any optimizations) implementation. I will also write about possible improvements. The Series   Initial Particle Demo Introduction Particle Container 1 - problems Particle Container 2 - implementation (this post) Generators & Emitters Updaters Renderer Introduction to Optimization Tools Optimizations Code Optimizations Renderer Optimizations Summary Introduction   Basic design:

READ MORE...

Vector of object vs Vector of pointers

Updated:

After watching some of the talks from Build 2014 - especially “Modern C++: What You Need to Know” and some talks from Eric Brumer I started thinking about writing my own test case. Basically I’ve created simple code that compares vector<Obj> vs vector<shared_ptr<Obj>> The first results are quite interesting so I thought it is worth to describe this on the blog.

READ MORE...

Flexible Particle System - Start

Updated:

Particle systems are awesome! Not only can you create amazing effects, but you can also optimize code and push even more and more pixels to the screen. This post series will cover how to design a flexible particle system and apply a bunch of optimizations to run it faster. Flexible means that it can be used in real applications and for a variety of graphics effects.

READ MORE...

Three Particle Effects

Updated:

For some time I have been playing around with my particle system. It seems to be a very interesting experiment to do! Today I just want to present some of current results and thoughts on future development. So far I managed to create three different effects: star tunnel: just round position generator + position update attractors: four attractors that affect acceleration of each particle fountain: simple collision detection with a floor Let us see some of the results…

READ MORE...

Simple Water Simulation

Updated:

Finally I have managed to publish my awesome water simulation! I know that I wrote about my intentions to publish the project some time ago but as usually there was no enough time :) The code is quite old and was ready something like 2 years ago. As usually I wanted to polish it and thanks to that it was blocked for too long period of time.

READ MORE...

The Passionate Programmer

Updated:

How to be a better programmer? What technologies should be learned? How to have fun when coding? Read more to see where are the answers for those questions. Intro   Programmers have this wonderful opportunity to often pursue a dream career path. Lots of us would not like to only pay the bills but actually change the world as well.

READ MORE...

Book: OpenGL Development Cookbook

Updated:

Recently, thanks to a contact with Packt Publishing, I got a chance to take a look at the new OpenGL book. It is called “OpenGL Development Cookbook” and contains lots of interesting ideas (40 items!) regarding graphics programming. Let us dig into book’s pages to see its real value. The first thing: the book is a cookbook.

READ MORE...

Code Kata - chop

Updated:

As it appears, our ability to code can be improved by taking some practices from martial arts! CodeKata is a catchy name for set of exercises that done regularly should make your coding skills better. Today I would like to share my “answers” to one of the Kata - karate chop, or simply the binary search algorithm.

READ MORE...