Skip to content

Commit

Permalink
fixed subtraction of image initialization problem
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubMitura14 committed Nov 26, 2021
1 parent a2a91f8 commit 7d0b9c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
7 changes: 1 addition & 6 deletions docs/src/loadExampleData.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,7 @@ textureSpecificationsPETCT = [
];
# We need also to specify how big part of the screen should be occupied by the main image and how much by text fractionOfMainIm= Float32(0.8);
fractionOfMainIm= Float32(0.8);
"""
If we want to display some text we need to pass it as a vector of SimpleLineTextStructs - utility function to achieve this is
textLinesFromStrings() where we pass resies of strings, if we want we can also edit those structs to controll size of text and space to next line look into SimpleLineTextStruct doc
mainLines - will be displayed over all slices
supplLines - will be displayed over each slice where is defined - below just dummy data
"""

import MedEye3d.DisplayWords.textLinesFromStrings

mainLines= textLinesFromStrings(["main Line1", "main Line 2"]);
Expand Down
6 changes: 3 additions & 3 deletions src/display/GLFW/startModules/PrepareWindow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ function displayAll(listOfTexturesToCreate::Vector{TextureSpec}
vertex_shader = createVertexShader(gslsStr)

masks = filter(textSpec-> !textSpec.isMainImage ,listOfTexturesToCreate)
someExampleMask = masks[1]
someExampleMaskB = masks[2]
@info "masks set for subtraction $(someExampleMask.name)" someExampleMaskB.name
someExampleMask = masks[begin]
someExampleMaskB = masks[end]
# @info "masks set for subtraction $(someExampleMask.name)" someExampleMaskB.name
fragment_shader_main,shader_program= createAndInitShaderProgram(vertex_shader,listOfTexturesToCreate,someExampleMask,someExampleMaskB,gslsStr )

glUseProgram(shader_program)
Expand Down

2 comments on commit 7d0b9c9

@jakubMitura14
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: "Tag with name v0.3.0 already exists and points to a different commit"

Please sign in to comment.