Category : graphics

I recently started to learn c++. I used Microsoft visual studio community as an IDE. when i made some programs and ran them the blackish background on the program looked very unprofessional. It would mean a lot to me if you teach me how to add graphics in ms visual studio community c++. Thanks! Source: ..

Read more

I am trying to a place a plane at the corner of my canvas(my app is in C++). My approach was to invert the camera projection matrix and then multiply it with the w and translate it to top right. So it looks like – origin(0.0, 0.0, 0.0, 1.0f); projViewInverse = Camera.projViewMatrix().inverse(); projectionMatrix = Camera.projViewMatrix(); ..

Read more

I want to run <graphics.h> in VsCode. For that, i downloaded the 3 files(graphics.h, winbgim.h and libbgi.a) and pasted them in their respective folders and the sqqiggly lines under graphics.h are not coming anymore. But when I go to execute the following code – #include<graphics.h> int main() { int gd=DETECT,gm; initgraph(&gd,&gm,(char*)""); circle(200,200,100); line(200,500,45,485); getch(); closegraph(); ..

Read more

I have an assignment to build a 7 segment BCD counter. The idea is to generate binary numbers 000, 001, etc all the way up to 9, and then feed them into a BCD decoder and the display will be a 7 segment display that counts 0, 1, 2, 3, 4, 5, 6, 7, 8, ..

Read more