This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asm_raw_noise_3d: | |
%line 80+1 ../src/util/asmnoise.asm | |
unpcklps xmm0,xmm1 | |
addss xmm1,xmm0 | |
addss xmm1,xmm2 | |
movlhps xmm0,xmm2 | |
mulss xmm1,[F3] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <chrono> | |
#include <iostream> | |
#include <fea/util/noise.hpp> | |
int main() | |
{ | |
fea::Noise noise; | |
uint64_t min(-1), max(0), avg(0); | |
int steps = 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string* addEntry(string* dynamicArray, int& size, string newEntry) | |
{ | |
string* newArray = new string[size+1]; | |
memcpy(newArray, dynamicArray, size*sizeof(string)); | |
newArray[size]=newEntry; | |
delete[] dynamicArray; | |
return newArray; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <SFML/Window.hpp> | |
int main() | |
{ | |
sf::Window window(sf::VideoMode(800, 600), "test"); | |
const sf::Vector2i desired_position(200, 200); | |
while(window.isOpen()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Parents: | |
Genome A: | |
Name: test0 | |
Value: C | |
Crossover: false | |
Name: test1 | |
Value: B | |
Crossover: false | |
Name: test2 | |
Value: A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ctime> | |
#include <iostream> | |
#include <SFML/Graphics.hpp> | |
#include <noise/noise.h> | |
class Game; | |
struct Entity | |
{ | |
enum Type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ctime> | |
#include <iostream> | |
#include <SFML/Graphics.hpp> | |
#include <noise/noise.h> | |
class Game; | |
class Level | |
{ | |
friend class Game; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <memory> | |
#include <SFML/Graphics.hpp> | |
int main() | |
{ | |
sf::RenderWindow window{{800, 600}, "Backface Calculations for zsbzsb"}; | |
sf::CircleShape light_point(5.f); | |
light_point.setOrigin({5.f, 5.f}); | |
light_point.setPosition(static_cast<sf::Vector2f>(window.getSize())/2.f); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace std | |
{ | |
template <typename T, typename Y> T* begin(std::pair<T*, Y> const& p){ return p.first; } | |
template <typename T, typename Y> T* end(std::pair<T*, Y> const& p){ return p.second*sizeof(p.first); } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
strlen: | |
mov esi, eax | |
xor ecx, ecx | |
.loop: | |
mov edx, [esi+ecx] | |
cmp edx, 0 | |
je .end | |
inc ecx | |
jmp .loop | |
.end: |