I have created the array windowDimensions with initialized values for [0] and[1]. I then placed these in the appropriated lines of code but every instance of this code (after the array) comes with the error messages
[{
“resource”: “/c:/Users/corne/GameDev/Dapper Dasher/Dasher.cpp”,
“owner”: “cpptools”,
“severity”: 4,
“message”: “narrowing conversion of ‘(nebula.Texture::width / 8)’ from ‘int’ to ‘float’ [-Wnarrowing]”,
“source”: “gcc”,
“startLineNumber”: 30,
“startColumn”: 32,
“endLineNumber”: 30,
“endColumn”: 32
},{
“resource”: “/c:/Users/corne/GameDev/Dapper Dasher/Dasher.cpp”,
“owner”: “cpptools”,
“severity”: 4,
“message”: “narrowing conversion of ‘(nebula.Texture::height / 8)’ from ‘int’ to ‘float’ [-Wnarrowing]”,
“source”: “gcc”,
“startLineNumber”: 30,
“startColumn”: 49,
“endLineNumber”: 30,
“endColumn”: 49
},{
“resource”: “/c:/Users/corne/GameDev/Dapper Dasher/Dasher.cpp”,
“owner”: “cpptools”,
“severity”: 4,
“message”: “narrowing conversion of ‘windowDimensions[0]’ from ‘int’ to ‘float’ [-Wnarrowing]”,
“source”: “gcc”,
“startLineNumber”: 31,
“startColumn”: 28,
“endLineNumber”: 31,
“endColumn”: 28
},{
“resource”: “/c:/Users/corne/GameDev/Dapper Dasher/Dasher.cpp”,
“owner”: “cpptools”,
“severity”: 4,
“message”: “narrowing conversion of ‘(windowDimensions[1] - (nebula.Texture::height / 8))’ from ‘int’ to ‘float’ [-Wnarrowing]”,
“source”: “gcc”,
“startLineNumber”: 31,
“startColumn”: 51,
“endLineNumber”: 31,
“endColumn”: 51
},{
“resource”: “/c:/Users/corne/GameDev/Dapper Dasher/Dasher.cpp”,
“owner”: “cpptools”,
“severity”: 4,
“message”: “unused variable ‘neb2Data’ [-Wunused-variable]”,
“source”: “gcc”,
“startLineNumber”: 38,
“startColumn”: 14,
“endLineNumber”: 38,
“endColumn”: 14
},{
“resource”: “/c:/Users/corne/GameDev/Dapper Dasher/Dasher.cpp”,
“owner”: “cpptools”,
“severity”: 4,
“message”: “narrowing conversion of ‘(nebula.Texture::width / 8)’ from ‘int’ to ‘float’ [-Wnarrowing]”,
“source”: “gcc”,
“startLineNumber”: 39,
“startColumn”: 32,
“endLineNumber”: 39,
“endColumn”: 32
},{
“resource”: “/c:/Users/corne/GameDev/Dapper Dasher/Dasher.cpp”,
“owner”: “cpptools”,
“severity”: 4,
“message”: “narrowing conversion of ‘(nebula.Texture::height / 8)’ from ‘int’ to ‘float’ [-Wnarrowing]”,
“source”: “gcc”,
“startLineNumber”: 39,
“startColumn”: 49,
“endLineNumber”: 39,
“endColumn”: 49
},{
“resource”: “/c:/Users/corne/GameDev/Dapper Dasher/Dasher.cpp”,
“owner”: “cpptools”,
“severity”: 4,
“message”: “narrowing conversion of ‘(windowDimensions[0] + 300)’ from ‘int’ to ‘float’ [-Wnarrowing]”,
“source”: “gcc”,
“startLineNumber”: 40,
“startColumn”: 30,
“endLineNumber”: 40,
“endColumn”: 30
},{
“resource”: “/c:/Users/corne/GameDev/Dapper Dasher/Dasher.cpp”,
“owner”: “cpptools”,
“severity”: 4,
“message”: “narrowing conversion of ‘(windowDimensions[1] - (nebula.Texture::height / 8))’ from ‘int’ to ‘float’ [-Wnarrowing]”,
“source”: “gcc”,
“startLineNumber”: 40,
“startColumn”: 57,
“endLineNumber”: 40,
“endColumn”: 57
},{
“resource”: “/c:/Users/corne/GameDev/Dapper Dasher/Dasher.cpp”,
“owner”: “cpptools”,
“severity”: 4,
“message”: “unused variable ‘nebData’ [-Wunused-variable]”,
“source”: “gcc”,
“startLineNumber”: 29,
“startColumn”: 14,
“endLineNumber”: 29,
“endColumn”: 14
}]