Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 62972

Use this tag for questions involving visual presentations, whether they are generated using bitmap or vector techniques.

4 votes
Accepted

Bresenhams line algorithm optimization

Is there any reason you are storing temporary those values in vector on start? for (int c(0); c<4; c++) { //use the string stream as a new input to put the data into a ve …
Dawid's user avatar
  • 176
2 votes

Bresenhams line algorithm optimization

In code with improbements: line vector<int> thisLine(4, 0); //to save the numbers is never used. Then in Bresenham(int,int,int,int): COLORREF COLOR = RGB(255, 255, 255); can be const (not sure …
Dawid's user avatar
  • 176