~ change a few includes

This commit is contained in:
Johannes Theiner 2020-01-08 20:56:48 +01:00
parent f6f283dcfc
commit 463ec11332
5 changed files with 9 additions and 37 deletions

View File

@ -9,7 +9,6 @@
* @since: v0.0.1
* draw circle, square, rectangle and mouse drawing
*/
void outPutPixel(int windowHeight, int windowWidth, vkvm::Color brushColor);
int main() {
vkvm::initialize(0);
@ -113,17 +112,3 @@ int main() {
return 0;
}
/***************************read pixel in shared memory and test output in console******************************************/
void outPutPixel(int windowHeight, int windowWidth, vkvm::Color penColor) {
for(int y = 0; y < windowHeight; y++) {
for(int x = 0; x < windowWidth; x++) {
if(vkvm::getPixel(x, y).getRed() == penColor.getRed()) {
std::cout << "*";
} else {
std::cout << " ";
}
}
std::cout << "\n";
}
}

View File

@ -1,8 +1,3 @@
//
// Created by shaohuatong on 06.12.19.
//
#include <iostream>
#include "Circle.hpp"
Circle::Circle() {

View File

@ -1,7 +1,3 @@
//
// Created by shaohuatong on 06.12.19.
//
#ifndef SIMPLE_DRAW_CIRCLE_HPP
#define SIMPLE_DRAW_CIRCLE_HPP

View File

@ -1,10 +1,7 @@
//
// Created by shaohuatong on 28.11.19.
//
#include "Color.hpp"
#include "DrawRender.hpp"
#include "vkvm.hpp"
#include <algorithm>
#include <unistd.h>
#include <thread>
#include <chrono>

View File

@ -4,17 +4,16 @@
#ifndef SIMPLE_DRAW_DRAWRENDER_HPP
#define SIMPLE_DRAW_DRAWRENDER_HPP
#include <string>
#include "Color.hpp"
#include "vkvm.hpp"
#include <iostream>
#include <vector>
#include "utils.hpp"
#include <cmath>
#include "Cursor.hpp"
#include "Rectangle.hpp"
#include "Circle.hpp"
#include "Shapes.hpp"
#include "Cursor.hpp"
#include "utils.hpp"
#include "vkvm.hpp"
#include <cmath>
#include <string>
#include <iostream>
#include <vector>
#define CIRCLE 0
#define RECTANGLE 1